Red Gate forums :: View topic - My App crashes with a large amount of "Private Bytes"
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

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

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
markmacumber



Joined: 24 Nov 2009
Posts: 1
Location: Melbourne, Australia

PostPosted: Tue Nov 24, 2009 12:21 am    Post subject: My App crashes with a large amount of "Private Bytes" Reply with quote

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?
Back to top
View user's profile Send private message
StephenC



Joined: 15 Oct 2007
Posts: 315
Location: Cambridge

PostPosted: Wed Nov 25, 2009 11:13 am    Post subject: Reply with quote

This could be due to heap fragmentation.

Please see this post for further info:

http://www.red-gate.com/messageboard/viewtopic.php?t=9930

Alternatively there may be an unmanaged code issue.

Stephen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group