🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: VCL Form inside TThread->Execute

#75
From: Remy Lebeau (TeamB)
Date: Thu, 19 Jun 2008 19:45
20 lines
1945 bytes
"Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message 
news:485438d3$1@newsgroups.borland.com...

> I don't think you can create multiple threads in each of which
> you have a VCL form and message handler.

VCL form, no.  Message handlers, yes.  Each thread has its own message 
queue, and can run its own message loop to process the queue.

> You could do it with the Windows API but would still probably
> run across some inter-thread issues.

If the GUI is created using straight API coding, then there would not be any 
inter-thread issues.  The only reason it is a problem for VCL GUI controls 
is because of the use of shared resources that are not protected from 
multi-threaded concurrent access.


Gambit 
Technical Details
Message-ID: <485ab7ba@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4853e32c$1@newsgroups.borland.com> <4853e7cb$1@newsgroups.borland.com> <485403a7@newsgroups.borland.com> <48540a59$1@newsgroups.borland.com> <48540d41$1@newsgroups.borland.com> <485438d3$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> <4853e7cb$1@newsgroups.borland.com> <485403a7@newsgroups.borland.com> <48540a59$1@newsgroups.borland.com> <48540d41$1@newsgroups.borland.com> <485438d3$1@newsgroups.borland.com>
Subject: Re: VCL Form inside TThread->Execute
Date: Thu, 19 Jun 2008 12:45:57 -0700
Lines: 22
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <485ab7ba@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1213904826 207.178.157.90 (19 Jun 2008 12:47:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail