Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

A TClientSocket question?

Posted on 2003-03-16
8
Medium Priority
?
1,257 Views
Last Modified: 2011-10-03
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)!
0
Comment
Question by:xlt77
7 Comments
 
LVL 4

Expert Comment

by:nestorua
ID: 8147046
HI,
What exactly do you want to have info from your TClientSocket?
Sincerely,
Nestorua.
0
 
LVL 2

Author Comment

by:xlt77
ID: 8147124
Nestorua.
  I think maybe it is a BUG in TClientSocket when lots of thread dealing connection use TClientSocket. I just want find a best way to implements my email-sending program.
0
 
LVL 2

Expert Comment

by:PeterLarsen
ID: 8147176
Hi,

This is from "Win32 error codes" 10055 :
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.

Maybe your object stops responding or you dont read incoming data fast enough when they are ready ?!?

Is this a one-time error or does it appear repeatedly ??

Peter
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 2

Author Comment

by:xlt77
ID: 8149935
PeterLarset:
  I has deal this problem success! when TClientSocket open error , my program does not remove the connection from system buffer, (I am not sure if TClientSocket.close can do this in the Open Exception case.) So I tried sending mail useing Socket API directly, and I can remove the connection myself.
  Thank's A lot.
  By the way , how can I cancel this question?
0
 
LVL 2

Expert Comment

by:j42
ID: 8150282
> By the way , how can I cancel this question?
Post a question in the Community Support section.
0
 

Expert Comment

by:CleanupPing
ID: 9316756
xlt77:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10639943
PAQed, with points refunded (400)

modulo
Community Support Moderator
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question