Einzelnen Beitrag anzeigen

Muetze1
(Gast)

n/a Beiträge
 
#2

Re: RegisterWaitForSingleObject - wie richtig benutzen?

  Alt 3. Jan 2008, 15:13
Hast du diesen Passus beachtet?
MSDN
Note that you should not pulse an event object passed to RegisterWaitForSingleObject, because the wait thread might not detect that the event is signaled before it is reset. You should not register an object that remains signaled (such as a manual reset event or terminated process) unless you set the WT_EXECUTEONLYONCE or WT_EXECUTEINWAITTHREAD flag. For other flags, the callback function might be called too many times before the event is reset.


Weil wenn der Status danach immernoch signaled ist, dann wirst du sofort wieder aufgerufen.
  Mit Zitat antworten Zitat