Unload FBClient

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Jank
Posts: 35
Joined: Tue 11 May 2010 11:57

Unload FBClient

Post by Jank » Tue 26 Feb 2019 10:53

Hi,

I extract a Firebird 3 with alle Files I need for embedded Firebird to temp-Directory.
Then I use it. When I close the Programm I close the connection then I try to delete the fb-Directory, but thats not possible becuse the fbclient.dll ist still loaded.
So I set IBCCall.ForceUnloadClientLibrary to true and call GDSList.clear by myself. Now I can delete much more files, but not all and I think, that is not a good way.
I can delete ib_util.dll, icudt52.dll, icudt52l.dat, icuuc52.dll only, I the application is closed.

Is there a way to unload all loaded librarys on a clean way that I can delete the files?

Regards, Jan

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Unload FBClient

Post by ViktorV » Wed 27 Feb 2019 10:40

We have investigated this problem, and we assume it is not due to any bugs in IBDAC, but it is related to Firebird functionality issues. There is similar error report in the Firebird RDBMS Issue Tracker. http://tracker.firebirdsql.org/browse/CORE-5299, http://tracker.firebirdsql.org/browse/CORE-6014

Jank
Posts: 35
Joined: Tue 11 May 2010 11:57

Re: Unload FBClient

Post by Jank » Thu 28 Feb 2019 11:46

Hi Viktor,

thank you very much for this information.
If this problem is fixed by Firebird, than using the "GDSList.clear" Method is a way you recommend?

Regards, Jan

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Unload FBClient

Post by ViktorV » Thu 28 Feb 2019 12:58

If Firebird corrects the error you indicated, you can use the GDSList.Clear method to solve your problem.

Post Reply