Saturday, April 10, 2010

Deallocation doesn't free mem. in Windows/C++ Application

Programmer Question

Hi,



My Windows/C++ application allocates ~1Gb of data in memory with the new operator and processes this data. The data is deleted after processing.



I noticed that if I run the processing again without exiting the application, the second call to "new" operator to allocate ~1gb of data fails.



I would expect Windows to deliver back the memory again. Could this be managed in a better way with some other win32 calls etc. ?



Thanks,



Paul



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails