Unload FBClient
Posted: 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
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