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?
Re: My Application remains open after closing all forms
Are you declaring any background threads in your application that might not be released?
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.
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.
Re: My Application remains open after closing all forms
Are you using any third party controls or libraries? Or calling unmanaged APIs?
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.