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 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

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

2006-07-31 Thread Arno Garrels
ucts. > AMS Development Team. > [EMAIL PROTECTED] > > > - Original Message - > From: "Francois PIETTE" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, July 30, 2006 8:47 PM > Subject: Re: [twsocket] Best event to start new Sm

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

2006-07-31 Thread Max Terentiev
nRequestDone may show "Component not ready error". --- With best regards, Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing"

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()

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

2006-07-30 Thread Francois PIETTE
MAIL PROTECTED]> To: "ICS support mailing" 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 in

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

2006-07-30 Thread Max Terentiev
http://www.overbyte.be > > > > - Original Message - > From: "Max Terentiev" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Sunday, July 30, 2006 5:17 PM > Subject: Re: [twsocket] Best event to start new Smtp session > > &g

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

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

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 http://www

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

2006-07-30 Thread Max Terentiev
Max Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, July 30, 2006 6:24 PM Subject: Re: [twsocket] Best event to start new Smtp sessio

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] http://www.overbyte.b

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 Francois PIETTE
" Sent: Sunday, July 30, 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 !

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

2006-07-30 Thread Max Terentiev
no Abort) ? > >> --- >> With best regards, Max Terentiev. >> Business Software Products. >> AMS Development Team. >> [EMAIL PROTECTED] > > >> - Original Message - >> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> >> To

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

2006-07-30 Thread DZ-Jay
On Jul 30, 2006, at 04:39, Francois PIETTE wrote: >> 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 Read

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 sync

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

2006-07-30 Thread Max Terentiev
usiness Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" 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 Wilfried Mestdagh
se of successfull sending (no Abort) ? > --- > With best regards, Max Terentiev. > Business Software Products. > AMS Development Team. > [EMAIL PROTECTED] > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support ma

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

2006-07-29 Thread Max Terentiev
usiness Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> To: "ICS support mailing" 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-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: