Jeffrey
Jeffrey

Reputation: 1410

App Shutdown C# Windows

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

Answers (2)

Badaro
Badaro

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

EricSchaefer
EricSchaefer

Reputation: 26340

This happens if you still have running threads.

Upvotes: 0

Related Questions