Hello everyone:

In my program, I created a thread to read data and put it into the
buffer, then the thread will post a message to main form and suspend
itself. When the main form receives the message, it sends the data in
buffer to the server.

I wrote code in the OnDataSent event of TWSocket to resume the thread.

At first, the process worked, but after few times, the thread failed
to resume, the log shows that the OnDataSent event had been triggered.

The following is my code :
    if (FSendThread <> nil) then begin
      FSendLog.Log(ltRuntime, 'OnDataSent resume the thread.');
      FSendThread.Resume;
    end;

Pls help me, thank you!


Bruce Zhao
2010.05.21
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to