low virtual memory

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: nirk (anonymous_at_discussions.microsoft.com)
Date: 03/11/04


Date: Thu, 11 Mar 2004 06:06:15 -0800

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



Relevant Pages

  • Re: Task Manager/Processes (for Dummies)
    ... On the "Processes" tab of the Task Manager, ... CPU usage but shows a figure under "Mem Usage" does it mean the ... The figure in Mem Usage is the amount of memory which is referenced by ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Task Manager/Processes (for Dummies)
    ... On the "Processes" tab of the Task Manager, ... CPU usage but shows a figure under "Mem Usage" does it mean the process ... The figure in Mem Usage is the amount of memory which is referenced by the ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Task Manager/Processes (for Dummies)
    ... On the "Processes" tab of the Task Manager, ... CPU usage but shows a figure under "Mem Usage" does it mean the process ... The figure in Mem Usage is the amount of memory which is referenced by the ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Tracing Program Memory Usage
    ... Task Manager "Peak Mem Usage" column = PeakWorkingSet64 ... lMemoryInUse = process.VirtualMemorySize64 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Task Manager Process Counters
    ... Whereas the memory usage statistic will account for all the physical ... Windows Task Manager - Mem Usage and VM Size. ... it corresponds to process' private bytes. ...
    (microsoft.public.win32.programmer.kernel)