>>If lnWait is 0 [zero] According to MSDN that means:
>>WAIT_OBJECT_0 0x00000000L The state of the specified object is signaled.
>
>Sorry, but I do not understand what you are saying here.
That means that the object you waiting for is is available (not sure if that is the right word).
No error here, just you should proceed further.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.