Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Dmitry
Wed, 10 Jan 2007 15:04
UnloadPackage
Author: Dmitry
Date: Wed, 10 Jan 2007 15:04
Date: Wed, 10 Jan 2007 15:04
13 lines
1182 bytes
1182 bytes
Hi All, My application loads several bpls on start by LoadPackage. Weather is that critically neccesary to call UnloadPackage for each Loaded package in memory on application Exit. I use to have no problem do not UnloadPackages, as they unload automatically. Thank you. Dmitry
Re: UnloadPackage
Author: Mike Collins
Date: Mon, 15 Jan 2007 10:46
Date: Mon, 15 Jan 2007 10:46
29 lines
1975 bytes
1975 bytes
Hay dima, You should definatly unload packages, just as you unload dll's - it may not become apparent when you are running you application in a test environment be the memory my not always be freed by the application. I've had a similar problem before with dynamically loading packages and getting exceptions when i try to unload them when the applicaiton closes. I seem to remember that i solved it by unloding the packages from the mainforms OnClose, instead of it's distructor. HTH "Dmitry" <dmitry@pikalevo.com> wrote in message news:45a5005b$1@newsgroups.borland.com... > Hi All, > > My application loads several bpls on start by LoadPackage. > > Weather is that critically neccesary to call UnloadPackage for each Loaded > package in memory on application Exit. > > I use to have no problem do not UnloadPackages, as they unload > automatically. > > Thank you. > > Dmitry > >
Re: UnloadPackage
Author: Dmitry
Date: Mon, 15 Jan 2007 18:12
Date: Mon, 15 Jan 2007 18:12
12 lines
1199 bytes
1199 bytes
Hi Mike > I seem to remember that i > solved it by unloding the packages from the mainforms OnClose, instead of > it's distructor. I seem have no problem unloading packages in destructor. This is DataModule destructor. Thank you Dima
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads