Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Store some variables in disk

$
0
0
Hi,

I am using Visual C++ to write an app. One problem is that the application will allocate a lot of object instances of a specific class CMyObject, maybe 400, 000. This will cause “Out of memory” error when total allocated CMyObject reaches 400,000.

To solve this problem, I just wonder when a new CMyObject instance is created, is it possible to specify so that the instance will allocate on a disk cache, or file mapping instead of the memory space?

Thanks

Alan

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images