Recent

Author Topic: Problem with Firebird using Lazarus 2.0.8  (Read 905 times)

Neville

  • New Member
  • *
  • Posts: 15
Problem with Firebird using Lazarus 2.0.8
« on: June 22, 2020, 04:45:36 pm »
Using TSQLConnector, I can login to a firebird database and query a table in the IDE during development, but when I run the program  I get an exception "Cannot locate fbclient.dll etc  "

I don't understand why the dlls can be found by the ide during development, but can't be found by the program when it runs.

Can anyone offer any suggestions.

Thanks,  Neville

eljo

  • Sr. Member
  • ****
  • Posts: 408
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #1 on: June 22, 2020, 05:03:03 pm »
Where on disk are the dlls? Any antivirus that gets in the way?

Neville

  • New Member
  • *
  • Posts: 15
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #2 on: June 22, 2020, 05:17:53 pm »
The dlls are in both system32 and sysWOW64.

eljo

  • Sr. Member
  • ****
  • Posts: 408
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #3 on: June 22, 2020, 06:18:26 pm »
The dlls are in both system32 and sysWOW64.
This should work for all programs. I have left only the antivirus idea. Just to make sure check that no firebird dlls are in the same directory as lazarus.exe file before starting disabling/uninstalling antivirus.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 993
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #4 on: June 22, 2020, 06:43:57 pm »
Using TSQLConnector, I can login to a firebird database and query a table in the IDE during development, but when I run the program  I get an exception "Cannot locate fbclient.dll etc  "
I don't understand why the dlls can be found by the ide during development, but can't be found by the program when it runs.
Can anyone offer any suggestions.
Thanks,  Neville
You can always put "fbclient.dll" in the same folder of your program.
Remember that both must be of same bitness: both 32bit or both 64bit.

Neville

  • New Member
  • *
  • Posts: 15
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #5 on: June 22, 2020, 07:00:23 pm »
Thanks, that's useful.

Neville

  • New Member
  • *
  • Posts: 15
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #6 on: June 23, 2020, 05:18:29 pm »
Thank you, getting the bitness sorted the problem.

I've found very little help (on the system) to be able to confirm the bitness of an exe or dll, so I've written a short program to display the bitness.


lucamar

  • Hero Member
  • *****
  • Posts: 3022
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #7 on: June 23, 2020, 05:54:30 pm »
so I've written a short program to display the bitness.

Would you mind sharing it? And, is it (or can be made) cross-platform?
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.8/FPC 3.0.4 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

eljo

  • Sr. Member
  • ****
  • Posts: 408
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #8 on: June 23, 2020, 06:34:51 pm »
so I've written a short program to display the bitness.

Would you mind sharing it? And, is it (or can be made) cross-platform?
the best tool for the job I know of https://ntcore.com/?page_id=388

emilt

  • New Member
  • *
  • Posts: 20
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #9 on: June 29, 2020, 04:11:57 pm »

mangakissa

  • Hero Member
  • *****
  • Posts: 1090
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #10 on: June 30, 2020, 02:29:28 pm »
use TSQLDBLibraryLoader
Lazarus 2.06 (64b) / FPC 3.0.4 / Windows 10
stucked on Delphi 10.3.1

GetMem

  • Hero Member
  • *****
  • Posts: 3757
Re: Problem with Firebird using Lazarus 2.0.8
« Reply #11 on: July 16, 2020, 01:42:41 pm »

 

TinyPortal © 2005-2018