VB.net, C#, J++ and C++ with managed code are almost completly equal when
they are compiled. In this newsgroup are that the only languages which
counts and where we are talking about.
Lloyd was complaining about and comparing the newer .NET languages with the
older VB environment. So it is relevant to his message. Also...
If you are coming from a VB background you may not see it this way and I
understand why.
What is that what you understand, I am curious what you mean with the
sentence above?
Now you confuse me, if you didn't want to talk about VB why did you ask me
to respond to my VB statement????
I find it an efficient way and that is what I am talking about not to make
everytime a roundtrip to the OS to clean up resources if there is enough
memory.
You keep assuming there is enough memory without knowing the specifics. I
don't program with that assumption. That is dangerous.
The original poster never mentioned memory availability, installation
environments, number of applications running on the machine, number of
instances of his specific application, number of user, type of application,
etc.. He said thousands of objects that should be cleaned up when the user
intervenes.
Thousands of objects can hog up just as much resources as one big one. For
example, if he is talking about a single web server application with
mutliple sessions, then one could multiply that by every user logged on. I'm
assuming worse case here but even if it was a single application but the
machine wasn't equipped to handle thousand of objects with small graphic
images he should be equipped now to call dispose on them. Its better to be
safe than sorry when working with incomplete specs. Thousands of small
managed images,files,graphics,etc. should have disposed called for them just
as importantly as one large one. Just assuming the GC will work OK without
knowing the specifics is wrong.
Never seen that in this newsgroup seriously, what I have seen is that the
taskmanager shows a lot (but what is a lot) of memory consumption and that
people are afraid if the GC does work correct because it does start
immidiatly when the program closes, but I cannot be sure of that of
course.
Look at the .NET performance newsgroup. Usually the first thing that is
suggested when memory leak "thought" to have happen is IDispose of graphic
objects, file objects, etc.. I just went over and sure enought there was
one.