exiting your vb.net application completely.

i had written an app in which even after pressing the exit button or close button,i could still see the process occupy some memory in task manager.

to deal with this,i googled for a while and came to know that this situation arises when some of my application components or objects are still referencing in the memory.

so i came across various forums suggesting me to close ( ) all the forms in the application.i did the same and now i dont see my app in the task manager after exiting it.

so what do you have to do when you come across this kinda situation?

lets say you have four forms ,form1,form2,form3,form4

in the exit handler,close them in the reverse order of their invocation.

form4.close()

form3.close()

form2.close()

form1.close()

this should work. :)

if you know how to propery handle this condition,please drop a comment below.

This entry was posted in VB 2008 and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted November 13, 2008 at 4:24 pm | Permalink

    Of course, its best to handle every tiny little close event that does not otherwise lead back to a previously shown form.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting