简体   繁体   中英

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

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.

如果您仍在运行线程,则会发生这种情况。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM