Article View: borland.public.cppbuilder.nativeapi
Article #1929Re: Loadlibrary failure for DLL with large mem req.
From: nagoyadam
Date: Fri, 08 Jun 2007 00:40
Date: Fri, 08 Jun 2007 00:40
26 lines
2340 bytes
2340 bytes
Thank you very much for your reply > Did you check the error code? The error message I receive is "Not enough storage is available to process this command" I have 3GB RAM on my machine, and the DLL requires around 600MB > My guess is that there isn't enough contiguous memory for the dll. > But if the linker knows about it, memory is set aside and other dlls > are shifted around to make room. The DLL has a large matrix used internally and not exported can the linker know about it? > >Any idea of how to do it? > > You might try setting the dll as "Delay Load" > In your code, you treat it as a normal preloaded dll. Using delay load I receive "external exception C0FB007E" when calling the DLL. I was able to run the program on Vista machine with 2GB RAM, but the problem remains on XP.
Technical Details
Message-ID:
<1181263237.328826.324850@g37g2000prf.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g37g2000prf.googlegroups.com!not-for-mailReferences:
<1181196641.804110.173150@r19g2000prf.googlegroups.com> <p8bg63p3mipc4u8sdfu91bclt70dsaakv4@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9dbe7f239dea0988 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g37g2000prf.googlegroups.com!not-for-mail From: nagoyadam@gmail.com Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Loadlibrary failure for DLL with large mem req. Date: Thu, 07 Jun 2007 17:40:37 -0700 Organization: http://groups.google.com Lines: 30 Message-ID: <1181263237.328826.324850@g37g2000prf.googlegroups.com> References: <1181196641.804110.173150@r19g2000prf.googlegroups.com> <p8bg63p3mipc4u8sdfu91bclt70dsaakv4@4ax.com> NNTP-Posting-Host: 210.173.158.73 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1181263237 5462 127.0.0.1 (8 Jun 2007 00:40:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 8 Jun 2007 00:40:37 +0000 (UTC) In-Reply-To: <p8bg63p3mipc4u8sdfu91bclt70dsaakv4@4ax.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 uss1001a:19999 (Squid/2.4.STABLE4), 1.0 netcache (NetCache NetApp/5.5R4D4), Version 1.0-ja_LINUX_1122 $Date: 10/01/2004 11:20:0028$(IWSS), 1.0 netcache (NetCache NetApp/5.5R4D4) Complaints-To: groups-abuse@google.com Injection-Info: g37g2000prf.googlegroups.com; posting-host=210.173.158.73; posting-account=HTnVMg0AAAAEsq7dx3jYohman-qHQtJB