"bleedledeep" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Oh, I agree that calling the System.GC.Collect() is bad, and it doesn't
> really do it when you ask, but I threw it in there out of curiosity to
> try and figure this out, I would never do that in real code.
>
> Forcing the GC from inside the DevPartner does cause an immediate GC,
> that is useful as well. That last 114,000 is never recovered.
>
Which is NOT TRUE, they will be recovered when the GC runs, another remark
is that you shouldn't use tools like profilers unless you have a real leak
(that is out of memory exceptions after x execution time).
> The problem I have is that in my "real" app, I create 10-20 objects
> that suffer this leak, and 114,000 * 20 == ouch.
>
Again, this is not a leak, learn the difference between normal behavior and
memory leaks.
Willy.
|