OutOfMemoryException found in memory profile results
sesh_ants
Posts: 3
hi,
I was memory profiling my .net 2.0 Winforms application using ANTS and in the results I observe that there are a couple of OutOfMemoryExceptions.
My application code does have the necessary try-catch blocks but when I run the application regularly I do not see any such memory exceptions. Even when I run using the profiler, the application works just fine. Only that I am surprised to find the out of memory exception objects in the results log and cannot explain myself where they are coming from?
Is this a .net thing? can anyone explain?
thanks
Seshagiri
I was memory profiling my .net 2.0 Winforms application using ANTS and in the results I observe that there are a couple of OutOfMemoryExceptions.
My application code does have the necessary try-catch blocks but when I run the application regularly I do not see any such memory exceptions. Even when I run using the profiler, the application works just fine. Only that I am surprised to find the out of memory exception objects in the results log and cannot explain myself where they are coming from?
Is this a .net thing? can anyone explain?
thanks
Seshagiri
Comments
I haven't had any experience with this, but I'd assume it's internal to the .NET Framework if it's been caught and handled. Maybe it would be a good idea to use ANTS Profiler's hierarchy to examine the parent objects of these exceptions and see if that leads to any of your objects.
thanks for the reply.
I am not aware of the profiler's heirarchy - can you include a screenshot of how one can trace an object's heirarchy?
regards
Seshagiri