Memory problem.

  • Thread starter Thread starter Mr. X.
  • Start date Start date
M

Mr. X.

How can I check my code memory problem (by some attitude. I know there is
CORE file in linux. I don't know for Window 7) ?
Is there any third party tool, or Microsoft tool to check this?

Thanks :)
 
How can I check my code memory problem (by some attitude. I know there
is CORE file in linux. I don't know for Window 7) ?
Is there any third party tool, or Microsoft tool to check this?

..NET, WMI and Win32 API has plenty of API's to get information about
memory usage.

What are you specifically looking for?

Arne
 
I am looking a way to resolve, whether I forgot to release an object from
memory.

Thanks :)
 
I am looking a way to resolve, whether I forgot to release an object
from memory.

??

..NET uses GC so you do not need to worry about releasing
memory.

Arne
 
Not quite sure.
I don't remember, but someone here said something about the IDispose or
IDisposable.
If object inherits IDispose (or IDisposable) I should free object by myself.

Thanks :)
 
Not quite sure.
I don't remember, but someone here said something about the IDispose or
IDisposable.
If object inherits IDispose (or IDisposable) I should free object by
myself.

That is for unmanaged resources - database connections, open files,
socket connections, native GUI stuff etc. not for normal memory allocated
by .NET!

Arne
 
That said, there are in fact memory profilers.  I haven't used any of
them, but for sure any memory profiler (I've heard Red Gate has a good
one) will show you all the objects that are currently allocated and
reachable (which can identify not objects that you've forgotten to
release per se, but rather objects that are still referenced even though
you expected them not to be).

One of the best I've used:
http://memprofiler.com/

Marc
 
Back
Top