Apart from the first command, under normal circumstances all commands loaded
to the FTP client are as a result of a previous FTP client event being
generated. Occasionally I am detecting a "FTP Component Not Ready" error.

So the question is: Is there an FTP or some sort of network condition that
can produce this error message, or is it more likely that there is some
sneaky route in my code whereby a command can be loaded to the FTP client
before the previous command has finished.

Yes, it is likely to come from your application. You have to make sure the component has really finished his work, specially in case of error. Use OnrequestDone event to chain next request.

Sometimes it helps using PostMessage with a custom message and the writing the code in the corresponding message handler. Using PostMessage append a message to the message queue, meaning that all pending messages will be processed before your own message, so you are sure there is nothing pending.

--
francois.pie...@overbyte.be
http://www.overbyte.be

--
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