My App crashes with a large amount of "Private Bytes"

Memory profiling for .NET developers

My App crashes with a large amount of "Private Bytes"

Postby markmacumber » Mon Nov 23, 2009 11:21 pm

Hi All,

I am new to memory profiling, and im trying to find out why exactly my application crashes on startup with an OutofMemoryException.

I ran the ANTS profiler and within 15 seconds, I have over 450MB allocated in the "Private Bytes" section of the profiler.

I took 2 snap shots, one before the jump and one after.

In the "Class List" view of my 2nd snapshot, there is nothing that I can see that is using that much space...

On top of the list when I filter by "Live Size" is a Byte[] which is using 925,023 bytes (not very much, only 0.8MB)

In regards to my app, I know Im loading up BitmapImage instances into memory, which could be the cause (most likely actually), but I dont know how to track that down.

How can I find out what is using up SO MUCH space?
Posts: 1
Joined: Mon Nov 23, 2009 11:13 pm
Location: Melbourne, Australia

Postby StephenC » Wed Nov 25, 2009 10:13 am

This could be due to heap fragmentation.

Please see this post for further info: ... php?t=9930

Alternatively there may be an unmanaged code issue.

Posts: 305
Joined: Mon Oct 15, 2007 8:18 am
Location: Cambridge

Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests