HighTechTalks DotNet Forums  

.NET Memory Problems

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss .NET Memory Problems in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Prasad Dannani
 
Posts: n/a

Default .NET Memory Problems - 06-07-2005 , 11:46 AM






HI,

I am a C#.NET Developer.
I created a windows application which is taking too much memory. But my code
is calling dispose methods of all objects and assigning null them.
I don't know why is it happening After that i tried the GC methods it worked
for me in the first instance but from the next time onwards its not working.
I don't why.

Can any one help on how to clear the memory immediately after completely
using of an object.

Thanks in Advance
Prasad Dannani



Reply With Quote
  #2  
Old   
Alvin Bruney [MVP - ASP.NET]
 
Posts: n/a

Default Re: .NET Memory Problems - 06-11-2005 , 07:26 AM






you need to hook up a memory profiler to your application. See MSDN for how
to do this

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Prasad Dannani" <prasad (AT) pennywise (DOT) com> wrote

Quote:
HI,

I am a C#.NET Developer.
I created a windows application which is taking too much memory. But my
code
is calling dispose methods of all objects and assigning null them.
I don't know why is it happening After that i tried the GC methods it
worked
for me in the first instance but from the next time onwards its not
working.
I don't why.

Can any one help on how to clear the memory immediately after completely
using of an object.

Thanks in Advance
Prasad Dannani





Reply With Quote
  #3  
Old   
New MSN
 
Posts: n/a

Default Re: .NET Memory Problems - 06-21-2005 , 03:52 AM



Use CLR Profiler which is available from Microsoft. You can find a how to
article also in msdn website.


"Alvin Bruney [MVP - ASP.NET]" <www.lulu.com/owc> wrote

Quote:
you need to hook up a memory profiler to your application. See MSDN for
how
to do this

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
"Prasad Dannani" <prasad (AT) pennywise (DOT) com> wrote in message
news:uhsuY13aFHA.3712 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
HI,

I am a C#.NET Developer.
I created a windows application which is taking too much memory. But my
code
is calling dispose methods of all objects and assigning null them.
I don't know why is it happening After that i tried the GC methods it
worked
for me in the first instance but from the next time onwards its not
working.
I don't why.

Can any one help on how to clear the memory immediately after completely
using of an object.

Thanks in Advance
Prasad Dannani







Reply With Quote
  #4  
Old   
Francois Bonin [C# MVP]
 
Posts: n/a

Default Re: .NET Memory Problems - 06-23-2005 , 09:06 AM



Can you post a bit of code on how exactly you are clearing the memory?
if possible show the code for one of your classes and how you use it and
dispose of it.

"Prasad Dannani" <prasad (AT) pennywise (DOT) com> wrote

Quote:
HI,

I am a C#.NET Developer.
I created a windows application which is taking too much memory. But my
code
is calling dispose methods of all objects and assigning null them.
I don't know why is it happening After that i tried the GC methods it
worked
for me in the first instance but from the next time onwards its not
working.
I don't why.

Can any one help on how to clear the memory immediately after completely
using of an object.

Thanks in Advance
Prasad Dannani





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.