Sorry but this was wrong. I found the solution:
If X>=0 Then
Begin
If ForceSleep Then
begin
Application.ProcessMessages;
Sleep(x);
end
Else
MsgWaitForMultipleObjects(0,msgHandles,False,X,QS_SENDMESSAGE);
End;
Application.ProcessMessages is the solution. Maybe this helps others to. Thx
again for pointing me to this great code.
--
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be