?
Solved

A TClientSocket question?

Posted on 2003-03-16
8
Medium Priority
?
1,239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month9 days, 13 hours left to enroll

762 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