By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,733 Members | 914 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,733 IT Pros & Developers. It's quick & easy.

Unable to consume Process reserved memory

P: n/a
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.

Aug 5 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

"Aravind" <ar*************@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
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.

Aug 6 '05 #2

P: n/a
Willy,
sorry for multi-posting the question.
-Aravind

*** Sent via Developersdex http://www.developersdex.com ***
Aug 6 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.