Connecting Tech Pros Worldwide Forums | Help | Site Map

How to trap a memory leak?

james
Guest
 
Posts: n/a
#1: Aug 10 '06
Hello,

I'm doing some longer running tests on my application, and it looks like
there is a memory leak... If I run it, it is fine for a few hours, but if I
check next day it's using 300Mb of RAM or so!

How do I go about tracking down what part of my code is causing this? Is
there a way of seeing what objects haven't been disposed of etc?



Vadym Stetsyak
Guest
 
Posts: n/a
#2: Aug 10 '06

re: How to trap a memory leak?


Hello, james!

jI'm doing some longer running tests on my application, and it looks like
jthere is a memory leak... If I run it, it is fine for a few hours, but
jif I check next day it's using 300Mb of RAM or so!

You can use profiler to detect what objects are not collected by GC.
ClrProfiler is a good start
( http://www.microsoft.com/downloads/d...displaylang=en )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Chakravarthy
Guest
 
Posts: n/a
#3: Aug 10 '06

re: How to trap a memory leak?


Though the suggested CLRProfiler will help you to handle the situation,
please give a look at this link to understand the memory leaking in .NET.

http://himabinduvejella.blogspot.com...aged-code.html

What do you say?
--
Every thing is perfect, as long as you share!!!


"james" wrote:
Quote:
Hello,
>
I'm doing some longer running tests on my application, and it looks like
there is a memory leak... If I run it, it is fine for a few hours, but if I
check next day it's using 300Mb of RAM or so!
>
How do I go about tracking down what part of my code is causing this? Is
there a way of seeing what objects haven't been disposed of etc?
>
>
>
james
Guest
 
Posts: n/a
#4: Aug 10 '06

re: How to trap a memory leak?



"Chakravarthy" <dskcheck@india.comwrote in message
news:6BE21C12-360B-4E0A-901E-654D98C1B131@microsoft.com...
Quote:
Though the suggested CLRProfiler will help you to handle the situation,
please give a look at this link to understand the memory leaking in .NET.
>
http://himabinduvejella.blogspot.com...aged-code.html
>
Looks helpful, thanks


Closed Thread


Similar C# / C Sharp bytes