Application Still In Use after Closing Main Form

  • Thread starter Thread starter Neelima Godugu
  • Start date Start date
N

Neelima Godugu

Hi
I am experiencing a weird issue.
I have an application that has multiple forms.The Startup class of the
application is a Class(not a form) named Application.
I instantiate all forms in the static Main method of this class.
Finally I do
System.Windows.Forms.Application.Run(frmEntityList);
at the end of main method.

To exit from the app I do the following

1. Close DB Connection
2. frmEntityList.Close();

The form disappears but the application is still in use. I verified this by
trying to overwrite the Application exe.

I am baffled by this.

Your help is appreciated.

TIA
Neelima Godugu
 
1. The form is closed, not minimized? If it's a PPC and it has an (X)
instak of (ok) in the corner, then it's only minimized.
2. Are you running any worker threads that you don't stop befoer leaving the
app?

-Chris
 
Hi Chris
Thanks for the prompt reply. I am aware of the "X" issue and that is not the
case here. I am calling a method to close the Main Form.
I dont think I have any threads. But I will double check(as I took over the
project from somebody else, i am not 100% sure). Any other ideas?
 
Hi
I checked and there are no threads.
I also tried making frmEntityList the Startup class and it did not help.
Is there any way to detect what objects are still in use after the
application shutsdown?
Thanks
 
What do you do to close/exit your app. I use Application.exit which work great.

Do you hide the Forms or do you close them (Form.Close() oder Form.hide())?

Greetings

Jens
 
Back
Top