[Originally posted by rpbrongers] I just want to point out that the explanation of what happens when a delegate is invoked after a RegisterWaitForSingleObject() is slightly wrong. In fact, the .NET framework documentation is wrong. The second parameter in the signature of the delegate (the boolean) should be called IsTimeOut, since it is true when a timeout occurs, and false when the event was signaled. This is exactly the opposite of what the book (and the .NET documentation) states. Bit of a shame that the author didn't check it, it's so simple to do....Took me a while to figure out why my code didn't do what I wanted, until I noticed the NAME of the parameter in the .NET SDK documentation (not the text explaining what happens, but the NAME of the parameter...see for yourself) Regards, Reinhard
|