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.
Hello Mice,
Application.ProcessMessages;
Sleep(x);
Bad idea :(
Pumping messages will have your event re-entered and thus produce
unpredicable results. If you wants to do that then you have to write a
mechanism to prevent it.
It is mutch better to use the MsgWait function, as I
Hello Mice,
I'm working on a ftpclient. If it is possible with FTPCLI I want to add a
feature to setup the maximal downloadspeed
Several aproach are possible. One aproach is to create FtpCli in a
thread and use throttling code you can find on
http://www.smatters.com/ics
Other aproach are to