I am having a problem. My application is a GUI compact framework and uses threads. When I close my main window I use Application.Exit() to close the process. But that doesn't work, my window closes but the process remains. And when I start a new instance a new process is started so I have then two running instances of my application.

What is wrong What should I do How is the proper way to close and exit a CF application

thanks Patrik

Re: .NET Compact Framework Pocket PC Processes

Ilya Tumanov

That¡¯s the right way to exit your application. However, it won¡¯t exit if you have any threads still running. So make sure to terminate all them or your application will stuck.