Groups | Blog | Home
all groups > dotnet framework > june 2007 >

dotnet framework : dot not app not quitting




6/28/2007 7:10:49 AM
[quoted text, click to view]

It's very hard to say without more information.

Could you provide a short but complete program which demonstrates the
problem?

Jon
Phillip Taylor
6/28/2007 2:24:33 PM
[quoted text, click to view]

You probably have a hidden form which isn't unloaded.

Are you sure that your not using form.hide() when you should be using
form.close() ?

if you've got an exit button, or a main form that should end the
application when closed you can use this line to exit the program:

Application.Exit()
John
6/28/2007 2:42:58 PM
Hi

I have noticed when I close my vb.net app, it is still visible under
processes in task manager? Why is that and how can I ensure complete closure
of app?

Thanks

Regards

Armin Zingler
6/28/2007 4:01:08 PM
"John" <John@nospam.infovis.co.uk> schrieb
[quoted text, click to view]

How many threads do you have? How did you terminate the threads? The process
closes as soon as all threads have finished. In a UI thread, you have to
leave the message loop (explicitly: started by Application.Run, stopped by
Application.ExitThread. Implicitly: started by VB if you specify a Form as
the startup object, stopped by closing the Form).

Goint into Pause mode and having a look at the threads window and at the
call stack should reveal what your app is doing.


Armin
AddThis Social Bookmark Button