wpf WPF中WPFFontCache服务有什么用?WPFFontCache_v0400.exe 在此 exe 运行时一直占用 100% CPU,为什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4999756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the use of WPFFontCache Service in WPF? WPFFontCache_v0400.exe taking 100 % CPU all the time this exe is running, why?
提问by Kishore Kumar
What is acutally the functionality of WPFFontCache in WPF?. Sometime it is takeing too much CPU usage because of this system in hanging and my Application. Is there any problem disabling the service from the windows service. The big concern is why it is hanging my Application?.
WPF 中 WPFFontCache 的功能究竟是什么?有时因为这个系统挂起和我的应用程序占用了太多的 CPU。从 Windows 服务禁用该服务是否有任何问题。最大的问题是为什么它挂起我的应用程序?。
回答by Cody Gray
The WPF Font Cache service shares font data between WPF applications. The first WPF application you run starts this service if the service is not already running. If you are using Windows Vista, you can set the "Windows Presentation Foundation (WPF) Font Cache 3.0.0.0" service from "Manual" (the default) to "Automatic (Delayed Start)" to reduce the initial start-up time of WPF applications.
WPF 字体缓存服务在 WPF 应用程序之间共享字体数据。如果该服务尚未运行,您运行的第一个 WPF 应用程序将启动该服务。如果您使用的是 Windows Vista,您可以将“Windows Presentation Foundation (WPF) Font Cache 3.0.0.0”服务从“手动”(默认)设置为“自动(延迟启动)”,以减少初始启动时间WPF 应用程序。
There's no harm in disabling it, but WPF apps tend to start faster and load fonts faster with it running.
It is supposed to be a performance optimization. The fact that it is not in your case makes me suspect that perhaps your font cache is corrupted. To clear it, follow these steps:
禁用它没有坏处,但 WPF 应用程序在运行时往往会启动得更快,加载字体也更快。
应该是性能优化。事实并非如此,这让我怀疑您的字体缓存可能已损坏。要清除它,请按照下列步骤操作:
- Stop the WPF Font Cache 4.0 service.
- Delete all of the WPFFontCache_v0400* files. In Windows XP, you'll find them in your
C:\Documents and Settings\LocalService\Local Settings\Application Data\
folder. - Start the service again.
- 停止 WPF 字体缓存 4.0 服务。
- 删除所有 WPFFontCache_v0400* 文件。在 Windows XP 中,您可以在
C:\Documents and Settings\LocalService\Local Settings\Application Data\
文件夹中找到它们。 - 再次启动服务。
回答by amitkumar
Use This its is very useful for your solution:
使用这对您的解决方案非常有用:
- Start > Control Panel > Administrative Tools > Services
- Scroll down to 'Windows Presentation Foundation Font Cache 4.0.0.0' and then right click and select properties
- In the window then select 'disabled' in the startup type combo
- 开始 > 控制面板 > 管理工具 > 服务
- 向下滚动到“Windows Presentation Foundation Font Cache 4.0.0.0”,然后右键单击并选择属性
- 在窗口中,然后在启动类型组合中选择“已禁用”
回答by Nuno Miranda
After installing Free BitDefender AntiVirus the services related to the AntiVirus used about 80 MB of my computer's Memory. I also noticed that after installing BitDefender the service related to windows Presentation Font Cache was also installed: "WPFFontCache_v0300.exe". I disabled the service from stating automatically and now BitDefender Free AntiVirus use only 15-20 MB (!!!) of my computer's Memory! As far as I concern, this service affected negatively the memory usage of my PC inother services. I recommend you to disable it.
安装 Free BitDefender AntiVirus 后,与 AntiVirus 相关的服务使用了大约 80 MB 的计算机内存。我还注意到在安装 BitDefender 后,还安装了与 windows Presentation Font Cache 相关的服务:“WPFFontCache_v0300.exe”。我禁用了自动声明的服务,现在 BitDefender 免费杀毒软件只使用了我电脑的 15-20 MB (!!!) 内存!就我而言,此服务对我的 PC 在其他服务中的内存使用产生了负面影响。我建议你禁用它。
回答by Subhasis
for win xp
赢xp
Steps
脚步
- [windows key] + R, type services.msc, search for the running instance of "Windows Presentation Foundation (WPF) Font Cache". For my case its 4.0. Stop the service.
- [windows key] + R, type C:\Documents and Settings\LocalService\Local Settings\Application Data\, delete all font cache files.
- Start the "Windows Presentation Foundation (WPF) Font Cache" service.
- [windows key] + R,输入services.msc,搜索“Windows Presentation Foundation (WPF) Font Cache”运行实例。就我而言,它是 4.0。停止服务。
- 【windows键】+R,输入C:\Documents and Settings\LocalService\Local Settings\Application Data\,删除所有字体缓存文件。
- 启动“Windows Presentation Foundation (WPF) 字体缓存”服务。
回答by odin a
Shortcut way: (windows xp)
快捷方式:(windows xp)
1) click Start > run > services.msc
1)点击开始>运行>services.msc
2) Scroll down to 'Windows Presentation Foundation Font Cache 4.0.0.0' and then right click and select properties
2) 向下滚动到“Windows Presentation Foundation Font Cache 4.0.0.0”,然后右键单击并选择属性