🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdThreadComponent

#3656
From: Remy Lebeau (TeamB)
Date: Sat, 13 Aug 2005 19:37
16 lines
1518 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 ?

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
Technical Details
Message-ID: <42fe4c66$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42fe315e@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42fe315e@newsgroups.borland.com>
Subject: Re: TIdThreadComponent
Date: Sat, 13 Aug 2005 12:37:45 -0700
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42fe4c66$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123961958 68.69.17.41 (13 Aug 2005 12:39:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail