Article View: borland.public.cppbuilder.nativeapi
Article #149Re: VCL Form inside TThread->Execute
From: Remy Lebeau (TeamB)
Date: Mon, 16 Jun 2008 16:47
Date: Mon, 16 Jun 2008 16:47
17 lines
1440 bytes
1440 bytes
"James L. Williams" <Jim_L_Williams@hotmail.com> wrote in message news:4853e32c$1@newsgroups.borland.com... > I would like to create a form that exists inside a Thread. That is not safe to do. Do it the other way around - create a TForm and have it run in the main thread normally and have a TThread inside of it. > I want this so that the forms graphics updates are handled inside of a > thread. That will not work correctly. VCL UI updates need to be done in the main thread. Gambit
Technical Details
Message-ID:
<48569960@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4853e32c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,de2c8c187b28c177 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4853e32c$1@newsgroups.borland.com> Subject: Re: VCL Form inside TThread->Execute Date: Mon, 16 Jun 2008 09:47:28 -0700 Lines: 19 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 207.178.157.90 Message-ID: <48569960@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1213634912 207.178.157.90 (16 Jun 2008 09:48:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail