I can't seem to get a good answer to these questions:
When do you need to set objects to Nothing?
When do you need to Unload forms?
When do you need to Erase Arrays?

The MSDN documentation seems to be conflicting:
"Each object uses memory and system resources. It is good programming practice to release these resources when you are no longer using an object.
Use Unload to unload a form or control from memory.
Use Nothing to release resources used by an object variable. Assign Nothing to an object variable with the Set statement."
AND
"All object variables are automatically cleared when they go out of scope."

Which of these is true? Does anyone know of a good source for a clear cut explanation of VB Memory managment?


thanx/good luck,
adam