Jan 24, 2011

WPF application getting struck in windows7/Xp




WPF application getting struck in windows 7/Xp
In windows you have a service that runs in background that stores the font that are used. So at times due to the overlap of the fonts and over storage of the same in Fontcache 3.0.0.0.dat file it leads in the balnk screen when you run the exe.
To resolve the issue follow the steps given below.
  1. Exit all WPF-based applications that are running on the computer.
  2. Stop the Windows Presentation Foundation Font Cache 3.0.0.0 service. To stop the Windows Presentation Foundation Font Cache 3.0.0.0 service, use one of the following methods.

    Method 1: Use Microsoft Management Console
    1. Click Start, click Run, type Services.msc, and then click OK.
    2. Right-click Windows Presentation Foundation Font Cache 3.0.0.0, and then click Stop.
    Method 2: Use the command prompt
    1. Click Start, click Run, type cmd, and then click OK.
    2. At the command prompt, type net stop "Windows Presentation Foundation Font Cache 3.0.0.0", and then press ENTER.
  3. Delete the old Fontcache3.0.0.0.dat file.

    Note By default, the Fontcache3.0.0.0.dat file is located in the %windir%\ServiceProfiles\LocalService\AppData\Local folder in Windows Vista. By default, the Fontcache3.0.0.0.dat file is located in the %systemdrive%\Documents and Settings\LocalService\Local Settings\Application Data folder in Windows XP and in earlier versions of Windows.
Hope this helped u....
CHEERS!!!!!


SANDEEP

No comments: