Why would GetMessageW take up massive CPU usage in my WPF application?

前端 未结 4 1705
Happy的楠姐
Happy的楠姐 2021-02-20 08:07

I\'ve got a serious head-scratcher on my hands here. I\'m investigating performance issues with a WPF component in our application.

Our .net application is very large,

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-20 08:52

    Looks like your message pump is pumping a lot. Could be interesting to see what kind of message your message queue is filled of. Can you use Spy++ on your window to see what is going on?

    Edit

    I've misunderstood the problem.

    Hans Passant is right, your program is just waiting on GetMessage for some event to process.

提交回复
热议问题