low virtual memory
From: nirk (anonymous_at_discussions.microsoft.com)
Date: 03/11/04
- Next message: Simon Trew: "Re: virtual listview"
- Previous message: Marek Wasilewski: "C++ client Invoking method using IDispatch with SAFEARRAY(BSTR)* argument"
- Next in thread: Igor Tandetnik: "Re: low virtual memory"
- Reply: Igor Tandetnik: "Re: low virtual memory"
- Reply: Roger: "Re: low virtual memory"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Simon Trew: "Re: virtual listview"
- Previous message: Marek Wasilewski: "C++ client Invoking method using IDispatch with SAFEARRAY(BSTR)* argument"
- Next in thread: Igor Tandetnik: "Re: low virtual memory"
- Reply: Igor Tandetnik: "Re: low virtual memory"
- Reply: Roger: "Re: low virtual memory"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|