Re: GC performance - GC fragility



In article <47a1d3ba$1@xxxxxxxxxxxxxxxxxxxxxx>, Craig Stuntz [TeamB]
says...

There exist tools for finding memory leaks and alike in unmanaged
code, but how to write according tools for managed code, without
detailed and really reliable information about the managing code?

http://msdn2.microsoft.com/en-us/library/ms979205.aspx

That may help but not as much as the equivalent tools for non-GC
investigations.

Note in the documentation the emphasis on "may" and "possibly" - sure
you can profile your application and see that it is a stinking memory
hog, but that doesn't actually tell you anything about whether that is
because you have memory leaks or just a badly designed program that
(presumably because the developers aren't thinking about memory
management) is just, well, a stinking memory hog.

In a non-GC app a memory leak is a memory leak and an error that can be
identified and fixed.

In GC, a memory leak is virtually indistinguishable from a badly
designed application. "Fixing" it might involve taking the entire
application apart and putting it back together again in an entirely
different way.

--
JS
TWorld.Create.Free;
.



Relevant Pages

  • Re: GC.Collect can be trusted?
    ... Microsoft .NET Framework, it is not possible to have a memory leak in ... How then can a memory leak ... Sure ther can be memory leaks in managed code. ... E.g. all static fields aren't collected. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Memory Leak Experts!!!!
    ... I don't know the specifics of the memory leak conserning DataRows. ... Dispose as the article describes), but it could very well be the case ... >> managed code is solely handled by the framework, ...
    (microsoft.public.dotnet.framework.performance)
  • Re: GC.Collect can be trusted?
    ... E.g. all static fields aren't collected. ... By this a memory leak in managed code can easily construckted. ... Then should not remove those references to late or ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Memory Leak in managed Code
    ... > That's something that I dont understand. ... It has nothing to do with your so called memory leak. ... > All my code is managed code and only use .NET libary (No third party ... framework you are running, so it would help us if you post your memory ...
    (microsoft.public.dotnet.languages.csharp)