mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
216 stars 66 forks source link

FB Library Search #261

Closed Jdochoa closed 2 years ago

Jdochoa commented 2 years ago

Added configuration for FB client library.

imagen

At the moment the configuration applies only to windows and at the application level. Connection level implementation pending. The search order of the library is corrected, remaining as follows:

  1. Try specific library, according to the FR configuration.
  2. Try to load fbembed.dll from the current application location.
  3. Try to load fbclient.dll from the current application location.
  4. Try to locate fbclient.dll through the installation registry. It only looks for "DefaultInstance"; If your installation has another name, this is not taken into account. 4.1. Try to locate %FB Directory%\fbclient.dll 4.2.- Try to locate %FB Directory%\wow64\fbclient.dll 4.3.- Try to locate %FB Directory%\bin\fbclient.dll 4.4.- Try to locate %FB Directory%\bin\wow64\fbclient.dll

5.- Let's try from the PATH and System directories for FBClient.dll 6.- Last try : attemps loading gds32.dll from PATH and System directories

Fix: #199 #229 #251 #258

arvanus commented 2 years ago

@Jdochoa I think you need to separate this config, one path for x64 and other for x86 build, and this should be transparent for the user. Probably need to add a config for flamerobin config manager to show/hide configurations according to it's plataform