Article View: borland.public.cppbuilder.nativeapi
Article #2719Re: UnloadPackage
From: 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 > >
Technical Details
Message-ID:
<45ab5b8b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!feeder08.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<45a5005b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d2ece69d5fb70f61 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45a5005b$1@newsgroups.borland.com> Subject: Re: UnloadPackage Date: Mon, 15 Jan 2007 10:46:54 -0000 Lines: 31 Organization: SDA Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.2826 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 84.13.143.92 Message-ID: <45ab5b8b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1168857995 84.13.143.92 (15 Jan 2007 02:46:35 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder02.uucp.at!feeder08.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail