You need to handle exceptions, although this can be done in many
different ways the following (scribbled in OE) may show one possible
way:
procedure TThreadedMail.Execute;
var
msg:TMsg;
IsMessage : Boolean;
begin
try
mainform.SmtpCli.ThreadAttach;
try
mainf
ing"
Sent: Sunday, May 13, 2007 4:25 PM
Subject: [twsocket] SmtpCli and the results of some tests
> Hello,
>
> I've tested one of my ideas for making SmtpCli working for me now.
> I've constructed a thread which will do the sending of the mail and thus
> does a th
Hello Markus,
Looks ok at first sight. But wy not create / destroy the component in
the thread's Execute ?
---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz
Sunday, May 13, 2007, 16:25, Markus Humm wrote:
> Hello,
> I've tested one of my idea
Hello,
I've tested one of my ideas for making SmtpCli working for me now.
I've constructed a thread which will do the sending of the mail and thus
does a thread attach/detach and has its own message loop.
It also knows the threadid of the main program so it posts a message to
it when the thread