简体   繁体   English

处理托管WPF应用程序的时间太长而无法关闭

[英]Process hosting wpf application too long to shutdown

I have a wpf application which after closing the main window, it takes around 20 seconds for the process to shutdown. 我有一个wpf应用程序,在关闭主窗口后,关闭该过程大约需要20秒。 What could be the possible reasons ? 可能是什么原因?

Is it the Finalizer thread doing its work? 终结器线程正在执行其工作吗?

How can this be debugged to find the root cause? 如何调试它以找到根本原因?

大概您已经创建了将IsBackground设置为false的线程,因此应用程序一直等待直到终止其操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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