Article View: borland.public.cppbuilder.nativeapi
Article #15810C++ Builder generated DLLs cause a virtual memleak?
From: Stefan
Date: Fri, 13 Jun 2003 10:18
Date: Fri, 13 Jun 2003 10:18
26 lines
1712 bytes
1712 bytes
When creating DLL using C++ Builder 6.0 I noticed that each time you load the DLL using HINSTANCE hDLL; hDLL = LoadLibrary( libname ); and after that freeing the DLL again with FreeLibrary( hDLL ); that not all virtual Memory (See w2k taskmanager) is freed again. So if you now perform that a couple of times (depends on the size of virtual memory) my application crashes with 'Runtime error 203 at xxxxxx' On my machine this happens after let's say the 1800th time I called LoadLibrary... However this does not happen if I am doing the same with a DLL build with MSVC++. This happens with each C++Builder generated DLL (even with a project created by the wizard which is compiled directly after creation) What I am doing wrong? Help will be greatly appreciated. Stefan
Technical Details
Message-ID:
<3ee9a4fc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e511dec40363f69a,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-13 03:35:24 PST From: "Stefan" <sb@web.de> Sender: "Stefan" <sb@web.de> Reply-To: "Stefan" <sb@web.de> Subject: C++ Builder generated DLLs cause a virtual memleak? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.131.202.182 80.131.202.182 X-Forwarded-For: unknown NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ee9a4fc$1@newsgroups.borland.com> Date: 13 Jun 2003 03:18:36 -0700 X-Trace: newsgroups.borland.com 1055499516 207.105.83.65 (13 Jun 2003 03:18:36 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail