Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

dot not app not quitting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 28 Jun 2007 14:42 GMT
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 - 28 Jun 2007 15:01 GMT
> 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?

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
Jon Skeet [C# MVP] - 28 Jun 2007 15:10 GMT
> 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?

It's very hard to say without more information.

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

Jon
Phillip Taylor - 28 Jun 2007 15:24 GMT
> Hi
>
[quoted text clipped - 5 lines]
>
> Regards

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()
Vadim Chekan - 02 Jul 2007 07:33 GMT
> Hi
>
[quoted text clipped - 5 lines]
>
> Regards

Attach to the application in visual studio, pause it, open threads
window and see which threads are active and what they are doing. This
might give you some hints.
Are any threads created in your application?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.