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 !
, 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
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
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
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
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
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
: [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
, 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
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
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]
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
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
://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
]
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
@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
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()
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
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:
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
20 matches
Mail list logo