Re: [twsocket] Best event to start new Smtp session

2006-08-01 Thread Max Terentiev
Helo Wilfred ! You should first check the state of the component before posting the message. If not ready then OnRequestdone will be fired again when component is ready. YES, it's helps !!! You should insert these check inside SmtpCli component ! Because without this check it's works buggy !

Re: [twsocket] Best event to start new Smtp session

2006-07-31 Thread Max Terentiev
, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 8:47 PM Subject: Re: [twsocket] Best event to start new Smtp session

Re: [twsocket] Best event to start new Smtp session

2006-07-31 Thread Arno Garrels
PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 6:26 PM Subject: Re: [twsocket] Best event to start new Smtp session Helo Francois, Because it's looks like a serious bug. Then you have a serious opportunity to dig into the component code :-) Seriously

Re: [twsocket] Best event to start new Smtp session

2006-07-31 Thread Wilfried Mestdagh
Hello Max, I receive SmtpRequestDone with error 10044 (Interrupted System Call), There must be something wrong in your design to have that error. Are you sure you dont call Abort at the wrong time ? then i PostMessage to initiate new Session, after receiving message by my messages Handler i

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Wilfried Mestdagh
Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, July 29, 2006 2:04 PM Subject: Re: [twsocket] Best event to start new Smtp session

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
Development Team. [EMAIL PROTECTED] - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, July 29, 2006 2:04 PM Subject: Re: [twsocket] Best event to start new Smtp session Hello Max, Use OnRequestDone to trigger

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Francois PIETTE
But how I can detect that SmtpCli-Abort() is finished, component is ready and I can call SmtpCli-Connect again for next message ? If I call SmtpCli-Connect() IMMEDIATELY after SmtpCli-Abort() I should receive Component Not Ready error, right ? I'm not sure. Abort is probably a synchronous

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
: [twsocket] Best event to start new Smtp session Hello Max, Use OnRequestDone to trigger next sending, not OnStateChange or OnSessionClosed. Both latter are more for log or display updates. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Francois PIETTE
, 2006 3:27 PM Subject: Re: [twsocket] Best event to start new Smtp session Hello Wilfred, I try to post message inside OnSessionClosed... But I notice another problem: I don't know why but OnSessionClosed called twice in some cases ! This is a log of my Smtp session where you can see

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread DZ-Jay
Saturday, July 29, 2006, 11:48, Max Terentiev wrote: Helo, What is a best event for starting new Smtp session (e.g. start sending next message after previous is sent or aborted)? Use OnRequestDone(). Check from there if the request was Abort. What I do is that I build a state machine in

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Wilfried Mestdagh
Hello Max, I just checked a few projects of me where I use TSmtpCli. I use OnSessionClosed only for logging purposes. So you dont need it. As DZ mentioned is that the reason wy you call Abort ? Then maybe it is better to follow his Reset advice. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Francois PIETTE [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 6:24 PM Subject: Re: [twsocket] Best event to start new Smtp session Please tell me: HOW i

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Wilfried Mestdagh
Hello Francois, I'm not sure. Abort is probably a synchronous method. If not, you'll get an OnRequestDone event. I think it is closing and returning without firing event. It is long ago I checked this... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Francois PIETTE
://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Max Terentiev [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 5:17 PM Subject: Re: [twsocket] Best event to start new Smtp session Hello Francois

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Max Terentiev
] To: ICS support mailing twsocket@elists.org Sent: Sunday, July 30, 2006 5:17 PM Subject: Re: [twsocket] Best event to start new Smtp session Hello Francois, I don't use Application-ProcessMessages in entire application. If event OnSessionClose may trigger (or may not trigger) twice maybe

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Francois PIETTE
@elists.org Sent: Sunday, July 30, 2006 6:26 PM Subject: Re: [twsocket] Best event to start new Smtp session Helo Francois, Because it's looks like a serious bug. Then you have a serious opportunity to dig into the component code :-) Seriously, don't use OnSessionClosed to start a new SMTP session

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread DZ-Jay
On Jul 30, 2006, at 12:26, Max Terentiev wrote: My program MUST call Abort() because it's email checker. It's interrupt connection after Success of RCPT command. DO NOT call Abort(), call QUIT!! Then OnRequestDone is triggered when it finishes and the connection is closed cleanly. Abort()

[twsocket] Best event to start new Smtp session

2006-07-29 Thread Max Terentiev
Helo, What is a best event for starting new Smtp session (e.g. start sending next message after previous is sent or aborted)? I was try to Use OnSessionClosed or OnStateChange events (in OnStateChange i wait for SmtpCli-State==smtpReady and Smtp-CtrlSocket-State=wsClosed). But anyway i receive

Re: [twsocket] Best event to start new Smtp session

2006-07-29 Thread Wilfried Mestdagh
Hello Max, Use OnRequestDone to trigger next sending, not OnStateChange or OnSessionClosed. Both latter are more for log or display updates. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, July 29, 2006, 11:48, Max Terentiev wrote:

Re: [twsocket] Best event to start new Smtp session

2006-07-29 Thread Max Terentiev
Development Team. [EMAIL PROTECTED] - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, July 29, 2006 2:04 PM Subject: Re: [twsocket] Best event to start new Smtp session Hello Max, Use OnRequestDone to trigger