Re: Memory increase and hang



You must make sure you understand the GC and how it works... I strongly advise you to have a loot at a few articles:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetgcbasics.asp
http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/1100/GCI/TOC.ASP
http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/1200/GCI2/TOC.ASP
http://blogs.msdn.com/ricom/archive/2005/05/23/421205.aspx

Without looking at the code i would say that you are not disposing of resources or you are caching too much data without releasing it.... but it could be so much more... A very common mistake is that many programmers work against the GC without knowing it... read those articles and reformulate you question as well as posting some code you suspect is holding data or allocating unecessary data.
And about calling GC.Collect, please read http://blogs.msdn.com/ricom/archive/2004/11/29/271829.aspx.




Erick Sgarbi

Hi,

I have an C# application and after about 12 hours it hangs with a .NET
Error System.OutOfMemoryException. This error is received after
GC.GetTotalMemory: 100038436 and in task manager the used memory is
about 130,000k.
I used GC.Collect but did not help. Please help.
Thanks in advance
Dan
*** Sent via Developersdex http://www.developersdex.com ***



.



Relevant Pages

  • Re: Fabian Pascal, completely different?
    ... that he is posting on his other passion ... I miss them too and glad he's kept the dbdebunk archive online but I wouldn't fault him if he forsook the db stuff for his own sake, after seeing all the crap that various db illiterates, mystics and S-O salesmen have thrown at him. ... I see no evidence to conclude this. ... I suspect one has to consider that many of the links are offered in a similar spirit to http://www.dbdebunk.com/quotes2006.html ...
    (comp.databases.theory)
  • Re: Anyone have real world prices for PADS and Altium Designer PCB design apps?
    ... I suspect that most people who read s.e.c. also look at s.e.d. ... is that most people who use the non-free versions PADS, Altium etc. ... posting there. ... Crossposting is frowned upon, but this situation might have been one ...
    (sci.electronics.cad)
  • Re: please
    ... and I suspect Smith has his own reasons for causing trouble-- ... The posting he answered ... on r.a.sf.w began "I'm looking for a place to get help with some stories ... =The SEX Column and other misprints= (Cosmos, ...
    (rec.arts.sf.composition)
  • Re: newbie question on datagrid
    ... I suspect he's actually quite smart. ... By setting his system time to 31/05/04 then his posting would always appear ... That way the posting has more chance to be looked at and answered for. ... >> datagrid display the descriptions. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Re-post as I still cant seem to get this to work 100%
    ... I suspect O5 is a typo (in the worksheet or just the posting?). ...
    (microsoft.public.excel.worksheet.functions)