I was reading about the Form's events in VB6 such as "Unload" "QueryUnload" and "Terminate", and about the "End" statement: http://articles.techrepublic.com.com/5100-10878%5F11-5533338.html http://visualbasic.freetutes.com/learn-vb6-advanced/lesson6/p5.html
I used to have problems with a VB6 app (it calls a lot of windows' apis). When I "End" in the main form's Unload event, it crashed the entire IDE! When I carefully closed all connections, stopped my timer, set to nothing all forms, and after all that cleaning process, place the "End" at the very last line in the main form's Terminate event everything went ok. Not more crashing :)
My question is about if it is necesssary to do all this "cleanning process" in .Net environment. I know that there's the Garbage Collector that erase all remaining bits that can cause problems.
Or, it doesn't matter if it is VB6 or .Net, it is a good practice to clean everything before "Ending" your app?