|
-
Dec 23rd, 2009, 10:16 AM
#1
Thread Starter
Fanatic Member
My Application remains open after closing all forms
Hello my application will remain open after closing every form. This is a recent issue in previous versions my application would close. I call dispose(true) on all form closing/closed events. (some forms require it on closing instead of close because of some custom made classes.) Any ideas as to what could be happening?
-
Dec 23rd, 2009, 10:23 AM
#2
Re: My Application remains open after closing all forms
Are you declaring any background threads in your application that might not be released?
-
Dec 23rd, 2009, 10:25 AM
#3
Thread Starter
Fanatic Member
Re: My Application remains open after closing all forms
I was in previous versions, but have commented that code out because it wasn't working properly/unneccesary.
-
Dec 23rd, 2009, 10:27 AM
#4
Thread Starter
Fanatic Member
Re: My Application remains open after closing all forms
It actually seems to run just fine on XP machines. The process closes after program exit. On Windows 7 however it will not.
-
Dec 23rd, 2009, 12:34 PM
#5
Re: My Application remains open after closing all forms
Are you using any third party controls or libraries? Or calling unmanaged APIs?
-
Dec 23rd, 2009, 01:11 PM
#6
Fanatic Member
Re: My Application remains open after closing all forms
To make sure that it exits you could run Application.Exit() in Form1_FormClosing
Although I'd only recommend it as a last option.
However, as said in the post above, if you are using any third party controls, you might need to unload these before closing your application.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|