Unable to consume Process reserved memory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aravind

    Unable to consume Process reserved memory

    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.

  • Willy Denoyette [MVP]

    #2
    Re: Unable to consume Process reserved memory

    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" <aravindakumar. v@gmail.com> wrote in message
    news:1123280446 .773616.313460@ g44g2000cwa.goo glegroups.com.. .[color=blue]
    > 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.
    >[/color]


    Comment

    • Aravindakumar Venugopalan

      #3
      Re: Unable to consume Process reserved memory

      Willy,
      sorry for multi-posting the question.
      -Aravind



      *** Sent via Developersdex http://www.developersdex.com ***

      Comment

      Working...