Advertisement

01.20.2005 at 08:13AM PST, ID: 21281985
[x]
Attachment Details

HOW TO EXIT A VB.NET APP.

Asked by kkandasa in Microsoft Visual Basic.Net

Tags: exit, program

Hello,

I have an issue exiting a vb.net app.

I have written a vb.net app that does the following from the startup routine.

- create a thread to get updates via tcp/ip from another server and update a global data structure.
- invoke a main display form to display the messages from the global data structure.

Once the main form is closed.. I pop up a message in the form_closing event to confirm the user wants to exit and then the code flows back to the startup routine exit sub line.

When I run this from Visual studio debugging mode, the program exits. When I create a setup file and run the program from the exe, upon exiting, the main display form disappears but the task manager still shows the application as running.

I thought that if the main thread (startup routine for the project) exits, the whole program along with all the other thread should exit as well..

Please help.

Thanks
Start Free Trial
[+][-]01.20.2005 at 08:40AM PST, ID: 13094652

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 11:06AM PST, ID: 13096239

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: exit, program
Sign Up Now!
Solution Provided By: gregoryyoung
Participating Experts: 4
Solution Grade: A
 
 
[+][-]01.20.2005 at 12:02PM PST, ID: 13096832

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 12:28PM PST, ID: 13097101

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.20.2005 at 02:25PM PST, ID: 13098303

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.08.2005 at 11:25AM PST, ID: 13257495

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2005 at 06:20PM PST, ID: 13260617

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.01.2005 at 12:25AM PST, ID: 13427203

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32