My App crashes with a large amount of "Private Bytes"
markmacumber
Posts: 2
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?
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?
Comments
Please see this post for further info:
http://www.red-gate.com/messageboard/vi ... php?t=9930
Alternatively there may be an unmanaged code issue.
Stephen