Thursday, January 17, 2013

Non responsive WPF application

Does your WPF application hangs/freezes or your presentationhost.exe is taking lot of CPU cycles?
The most common problem is a corrupt windows font cache.
Don't worry, the solution is pretty simple.

1. Run services.msc
2. Stop Windows Presentation Font Foundation 3.0.0 service
3. Delete FontCache3.0.0.dat

And here is the location for the above file

in XP: 
%systemdrive%\Documents and Settings\LocalService\Local Settings\Application Data 

in Vista/Windows7: %windir%\ServiceProfiles\LocalService\AppData\Local

4. Restart the machine.

No comments: