Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Jun : Dlls with runtime packages: problem with unloading

www.cryer.info
Managed Newsgroup Archive

Dlls with runtime packages: problem with unloading

Subject:Dlls with runtime packages: problem with unloading
Posted by:"Stefan Naumann" (nona..@nowhere.com)
Date:Mon, 25 Jun 2007 17:37:09

Hallo,

The architecture of our project consists of an Exe-file and dynamical loaded
Dlls. When upgrading from Delphi 4 to Delphi 2006 the problems with the is -
operator increased, so we are looking for another configuration.

The use of runtime packages in the Exe-file and the DLL for all Borland and
third party units makes the application run successfully, but when closing,
it will not unload, after having used at least 2 different DLLs with runtime
packages. Using the LCPI-OLE DB Providers for Firebird additionally an
access error occurs in a corresponding DLL.
We looked carefully, that each LoadLibrary is ballanced by a FreeLibrary,
each CoInitialize by a CoUnInitialize.

Is there something else we have to pay attention for or do we have to
replace our DLLs completely by dynamic loaded runtime packages ?

Thanks in advance !

Lothar Weidl-Walther

Replies:

www.cryer.info
Managed Newsgroup Archive