A TClientSocket question?
Posted on 2003-03-16
I tried to implement a Email-Sending program without viaing ISP! and I develop it with Delphi , I use TClientSocket to connect SMTP Server directly.
I set TClientSocket component property as : ClientType : ctNonBlocking
and I use a Timer and TClientSocket.onRead event to control the sending status when sending a mail. Then I try to send in Multi-thread , it works normal , But after a long time - about 1-3 hours , system warning show :
"window socket error: system buffer insuffiquence or sending query full ,can not do socket's opration. (10055) on API 'connect' " . How can I deal this problem? (Error Code is 10055) . Or any one can give a better way to implement my functions.(Please provide the core source)!