Re: low virtual memory

From: Roger (NOSPAM_at_hotmail.com)
Date: 03/11/04


Date: Thu, 11 Mar 2004 10:17:22 -0600


"nirk" <anonymous@discussions.microsoft.com> wrote in message
news:40878D4A-809D-49E3-B49E-37114FC9C6B8@microsoft.com...
> There is a database with 20,000 records around 16MB i am using a ATL COM
Dll to query this database and retrieve each record. Each record is in form
of an array and again the all records are placed inside a safearray.I have
writen a test program to repeatedly query this funcvtion and load the
safearray with all the records.But all 3 times i get an error message that
my computer is low on virtual memory and needs to be increased . What i feel
is i am not able to release COM pointers. But whatever interface pointers
are there they are all ssamrt pointers that is they release themselves.
>
> I can see in the TAsk manager that after each call to the function the mem
usage keeps on increasing . And finally it reaches the maximum level and i
get this error message of low virtual memory
>
> regards
> nirk

Does your DLL by chance use ADO's GetRows method to fetch the records?

-Roger



Relevant Pages

  • Re: Multiple DLL, multiple THREADS, multiple applications or something else?
    ... Once DLL is loaded and serial port opened and DLL left in its own ... especially if you re-use the buffers by ... > respond to query from devices on serial port) on a notify base ... ...
    (borland.public.delphi.language.objectpascal)
  • Re: C# access to C DLL
    ... >> I'm doing this via an outer DLL that wraps the old C DLL in an unmanaged ... >My guess is that you are passing un-pinned pointers to unmanaged code. ... your comment about pinning pointers may well be the main problem. ... Any recommended references that address this directly? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Call to absolute address
    ... But having to lug around a whole DLL ... > It's basically a simple jump table. ... The rest are pointers to various structures or data. ... > I'm not familiar with vtables. ...
    (microsoft.public.vb.general.discussion)
  • Re: C# access to C DLL
    ... >> I'm doing this via an outer DLL that wraps the old C DLL in an unmanaged ... >My guess is that you are passing un-pinned pointers to unmanaged code. ... your comment about pinning pointers may well be the main problem. ... Any recommended references that address this directly? ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Singleton Objects and Heap Allocation
    ... > I'm working in an existing custom framework and a class in that framework allows me to create an object that is a map of name to object pairs. ... You would probably need to tell DLL to use the process' data segment. ... of passing the actual data pointers. ...
    (microsoft.public.vc.language)