Karim Agha
Karim Agha

Reputation: 3625

WPF Application Hang

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

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.

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.

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.

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

Upvotes: 1

Views: 4999

Answers (2)

Hartmut Kocher
Hartmut Kocher

Reputation: 106

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

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

Upvotes: 5

Josh
Josh

Reputation: 69262

If I had to guess I would say video drivers. It might help to try attaching Visual Studio's debugger to the hung process (Debug -> Attach to Process) making sure that Managed Code is the selected debugger type. Then you can break into the debugger and maybe see a common stack trace.

Upvotes: 0

Related Questions