[quoted text, click to view] > PS: i wont hurt you to read this:
>
http://www.cs.tut.fi/~warp/MicrosoftComparingLanguages/
>
This commentary is a case of one inexperienced programmer criticizing a
feature that they do not understand, with poor understanding of the forces
that underlie the fundamental reasoning. Garbage collection is easy in
C++... if every developer were free of mistakes and if code were not
complex. This is not the case in the real world. The author of that
article completely failed to recognize the reality of memory leaks in a
production system of substantial size.
One reason for the success of BOTH Java and .Net languages like C# is that
this problem is solved for you. You may not agree with the way in which it
is solved, but it is solved for you. That is a huge step up and a major
boon for software development.
The problem isn't the computers or their languages... it is the limitations
of the humans who use them.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
[quoted text, click to view] "joe" <joe.con@rot.ofm.net> wrote in message
news:uE%23MoGKeFHA.2128@TK2MSFTNGP14.phx.gbl...
>I have a simple .NET application with two or three listViews which are
> filled with icons and when the user click on the proper item, they display
> the related images. I use "image = null ; " for all images that have been
> used and are going to be closed. This is how ever no way to reduce the
> memory consumption. I have noticed , using the task manager, that garbage
> collector doesn't actually do any collections unless the computer becomes
> low on memory. This is very foolish, and what good is a garbage collector
> which doesn't collect the disposed objects when they aren't needed
> anymore?
>
> Besides, calling CG.Collect() is usually avoided for performance and
> speed.
> What else can i do?
>
> PS: i wont hurt you to read this:
>
http://www.cs.tut.fi/~warp/MicrosoftComparingLanguages/
>
>
>