Unable to consume Process reserved memory

A

Aravind

Unable to consume Process reserved memory
Hi ,
This is a Windows form application which interacts with the unmanaged
C++ codes . In unmanaged c++ code we allocate around 130MB on the heap
for annalysing high resolution images .

Earlier during the processing ee do lot of process on the image and the
memory reaches high at one point of time to 1.2GB , after that we clear
all the memory being used so the memory in the task manager comes to
really low.
Also I am calling CompactHeap function in the c++ to get contigous
memory space.

Then when we read the processed high resolution image (130MB ) it is
going to out of memory exception . At this point I run memory analyser
and analysed the process memory , the reserved memory in the process is
good enough and the free memory in the process is really low . I am
wondering why the system is not taking the memory from the reserved
memory space.

Regards
Aravind.
 
W

Willy Denoyette [MVP]

PLEASE stop multi-posting, you posted this same question a couple of days
ago to this same NG and now you start re-posting to other NG's as well. I
wonder how you manage to read the answers.

This is what I answered in the CSharp NG.....
What exactly do you mean with "clear the memory" and what exactly you are
looking at in taskman?
I would suggest you take a look at the memory consumption using perfmon,
herewith you can inspect managed heap (CLR memory counters) and non managed
heap memory (process counters).
I would also suggest you read about memory management and GC heap management
in windows application.


Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top