Article View: borland.public.cppbuilder.internet.socket
Article #1890TidSMTP-> Abort?
From: Paw Suddergaard
Date: Mon, 25 Sep 2006 14:54
Date: Mon, 25 Sep 2006 14:54
32 lines
1556 bytes
1556 bytes
Hi All,
I'm having some troubles aborting a TidSMTP component after i've called
send.
My current setup:
I call:
TidThread->Start();
Then:
void __fastcall TEasyMail::IdThreadComponent1Run(
TIdCustomThreadComponent *Sender)
{
IdSMTP->Send(IdMessage);
}
//---------------------------------------------------------------------------
I have an abort button that calls terminate:
void __fastcall TEasyMail::IdThreadComponent1Terminate(
TIdCustomThreadComponent *Sender)
{
// Does nothing: IdSMTP->Socket->Close();
// Does nothing: IdSMTP->Disconnect();
}
//---------------------------------------------------------------------------
Any ideas?
thanks
Technical Details
Message-ID:
<4517ed96$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,62a22a2ea734cdfd,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 25 Sep 2006 16:54:15 +0200 From: Paw Suddergaard <paw@top-house.dk> User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: TidSMTP-> Abort? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.242.10.214 Message-ID: <4517ed96$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159196054 62.242.10.214 (25 Sep 2006 07:54:14 -0700) Lines: 32 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail