如何解决WPF高CPU占用率的问题?

FEEDOMING 2009-05-05 09:32:25
程序在运行完一段时间后,会发现CPU占用率非常低高,
然后中断程序想去找出当前执行的代码,但是没有发现,也没有当前代码在执行,
在Call Stack面板里面发现了这么一段话:

[In a sleep, wait, or join]
mscorlib.dll!System.Threading.WaitHandle.WaitAny(System.Threading.WaitHandle[] waitHandles, int millisecondsTimeout, bool exitContext) + 0x8f bytes
System.dll!System.Net.TimerThread.ThreadProc() + 0x2f9 bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x66 bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x6f bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes

不知道这个跟CPU高有什么关系,以及如何解决?
...全文
910 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
微恒软件 2012-06-21
  • 打赏
  • 举报
回复
顶,解决了没有
yagebu1983 2009-05-05
  • 打赏
  • 举报
回复
你看看是哪个进程。。。
Learn-anything 2009-05-05
  • 打赏
  • 举报
回复
不知道,up先
Sysping1 2009-05-05
  • 打赏
  • 举报
回复
是WPF导致的吗?还是其他程序
baiyunyinv 2009-05-05
  • 打赏
  • 举报
回复
没有用过,帮顶!

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧