Reputation: 1410
my C# app is still in RAM after executing Application.Current.Shutdown();
(db connection is closed before)
(Application.Current.Exit += new ExitEventHandler(Current_Exit); is also used )
is there another statement to use ?
the problem occurs on different Windows Xp systems and on Server 2008.
kind regards, jeff
Upvotes: 1
Views: 638
Reputation: 3480
If you spawned some threads, they might still be running. Either make sure they're finished before closing the application, or make sure you set the "IsBackground" property of the threads to "true" so they die with the application.
Upvotes: 3