> My program uses TSmtpCli and I receive this exception time to time: > > "Error in function WSACancelAsyncRequest - Invalid Argument." > > How to avoid this error ?
This is very strange. This error should never occur unless there is a bug somewhere in your program in a part probably not related to SMTP. A possibility is to have the socket handle closed outside of the component. This may happend if you pass an invalid argument to CloseHandle API function which you probably doesn't call directly but is called by many kind of runtime function, almost anywhere something is closed. Closing two times the same item (any kind of item) may result in this error if between the two closes the handle has been reused by windows for winsocket use -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be -- 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