PDA

View Full Version : W32Dasm FIX CPU usage


Lekara
09-21-2004, 05:52 PM
When I open a file in W32dasm and do nothing , the cpu goes 100% (2.0 GHz) , but when the menu is opened it is 3% (normal).

There must be some loop going on that is useless .

Q: 1.How to find that loop in O.D. ?
2.How to set break point ?

Eto hvala!

[email=][/pivoosjecko@yahoo.com]

jayte
09-21-2004, 08:05 PM
My guess, is that he (the program's author) is basically polling for Windows messages using PeekMessage in his main message loop, instead of GetMessage (which doesn't return 'till there's a message).

Anyway... this is why (the 100% CPU usage) that particular technique is somewhat ill-advised.

As for your questions... find the address of the program's Winmain, and WndProc... have a look.

Jeff

JDog45
09-22-2004, 02:38 AM
ditto ^^^