🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5922

Re: Creating a TForm from a Tthread.

#5922
From: Remy Lebeau (TeamB)
Date: Sat, 25 Jun 2005 00:37
15 lines
1300 bytes
"Jermey" <jasonssxxx@hotmail.com> wrote in message
news:42bc9a02$1@newsgroups.borland.com...

> Is it possible to create a TForm inside the Thread?

No.  VCL GUI controls must be accessed from the main thread only.  The VCL
is not thread-safe.

You should have your TForm create the TThread, not the other way around.
The TThread can update the TForm when needed, via the TThread::Synchronize()
method.


Gambit
Technical Details
Message-ID: <42bca8c1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42bc9a02$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,23ba61d084da5a10
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42bc9a02$1@newsgroups.borland.com>
Subject: Re: Creating a TForm from a Tthread.
Date: Fri, 24 Jun 2005 17:37:46 -0700
Lines: 17
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: <42bca8c1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119660225 68.69.17.41 (24 Jun 2005 17:43:45 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail