🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3657

Re: TIdThreadComponent

#3657
From: Curt
Date: Sat, 13 Aug 2005 20:20
29 lines
1987 bytes
>
> "Curt" <noemailaddress> wrote in message
> news:42fe315e@newsgroups.borland.com...
>
> > This code works well when the TIdThreadComponent is initially
> > set to "Active=true" in the IDE however if the Active property is
> > initially set to "false" then I get an access violation.  Can someone
> > please tell me why ?
>

> "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:42fe4c66$3@newsgroups.borland.com...

> You cannot access the Stopped property before Start() has been called.
> Stopped accesses an internal TIdThread object that is created when Start()
> is called.  The same goes for pretty much every other property and method
of
> TIdThreadComponent.  Call Start() first before accessing anything else.
>
>
> Gambit
>
>

Great ! that works.  I put a call to Start() in Form1->OnCreate(), but I
want to have the thread "started" in a suspended state.  The best way I can
think of is to call Start() and then immediately call Stop() but I am
guessing that this is not the accepted way.
Technical Details
Message-ID: <42fe5578$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <42fe315e@newsgroups.borland.com> <42fe4c66$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ddd659176ded7d7
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Curt" <noemailaddress>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42fe315e@newsgroups.borland.com> <42fe4c66$3@newsgroups.borland.com>
Subject: Re: TIdThreadComponent
Date: Sat, 13 Aug 2005 15:20:12 -0500
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 65.43.122.173
Message-ID: <42fe5578$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123964280 65.43.122.173 (13 Aug 2005 13:18:00 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail