WPF 应用程序挂起

编程入门 行业动态 更新时间:2024-10-22 23:32:14
本文介绍了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!!

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

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

更多推荐

WPF 应用程序挂起

本文发布于:2023-06-01 10:25:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/412967.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   挂起   WPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!