Memory leak ?

  • Thread starter Thread starter CRM Master
  • Start date Start date
C

CRM Master

Hi

I have a Visual Studio 2005 c# windows application that keep using more and
more memory and I can't seem to see where the problem is.

Is there someway to see what resources are used and how much memory they
take ? I suspect some datasets/connections not beeing closed but can't seem
to find the place.

Jack
 
There are several good memory profiler applications / addins available. But
frankly, the best thing to do is carefully review your code and only use a
programming pattern that insures your connections are indeed closed even if
an exception is thrown, e.g. the using ( xxx) { ... } construct along with
try / catch / finally, with the connection being closed in the finally code
block.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
 
Hi

I have a Visual Studio 2005 c# windows application that keep using more and
more memory and I can't seem to see where the problem is.

Is there someway to see what resources are used and how much memory they
take ? I suspect some datasets/connections not beeing closed but can't seem
to find the place.

Jack

Get yourself a good profiler and it will explain to you the consumption of
your memory in terms of actual usage, objects created, etc. Try RedGate
ANTS (red-gate.com) or JetBrains dotTrace (jetbrains.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top