WPF 应用程序挂起 [英] WPF Application Hang

查看:40
本文介绍了WPF 应用程序挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Windows 7 Professional (x64) 并在我的机器上安装了 .NET 4.0 RTM.

I'm using Windows 7 Professional (x64) and having installed .NET 4.0 RTM on my machine.

2 天以来,我注意到我尝试运行的每个 WPF 应用程序都挂起并变得无响应(无响应文本附加到它的标题栏)并且它被涂成白色.

Since 2 days I'm noticing that every WPF application that I'm trying to run hangs and becomes non responsive (a not responding text is appended to it's title bar) and it's painted white.

没有关于任何异常的信息,没有错误消息.没有.甚至事件日志也显示有应用程序挂起"事件(代码 1002),仅此而已.

There is no info regarding any exception, no error message. Nothing. Even the Event Log shows that there was "application hang" event (code 1002) and nothing more.

这个问题适用于所有用 WPF 编写的东西,即使是像 NHibernate Profiler 这样的产品和我经常使用的其他东西,没有任何问题.

This problem is for everything that is written in WPF, even for products like NHibernate Profiler and other stuff that I was using on a regular basis without any issues.

尝试重新安装 .NET 4.0,但没有任何改变.知道为什么会发生这种情况吗?

Tried to reinstall .NET 4.0 and nothing changed. Any ideas why this might be happening?

推荐答案

我遇到了同样的问题.这是一个损坏的字体缓存!!

I had the same problem. It was a corrupt font cache!!

参见 http:///social.msdn.microsoft.com/Forums/en-US/wpf/thread/7cc032c1-5f4d-4518-adc6-f53afd051e6b 寻求解决方案.

See http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/7cc032c1-5f4d-4518-adc6-f53afd051e6b for a solution.

这篇关于WPF 应用程序挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆