views:

290

answers:

2

Hi,

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?

A: 

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.

Josh Einstein
+1  A: 

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.

Hartmut Kocher
thanks! helped a lot
Dave