🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Thread problem.

#13649
From: Remy Lebeau (TeamB)
Date: Thu, 02 Oct 2003 00:45
17 lines
1726 bytes
"Charles Page" <lissom@snet.net> wrote in message
news:3f7b7121$1@newsgroups.borland.com...

> You either need to use a timer, render in a frames per
> second scheme in the thread or turn the priority down.

Another possibility would be to do as much rendering inside the thread as
possible, and then only call Synchronize() when you're ready to actually
update the GUI display with the new image.  Even then, you could just use
SendMessage() instead of Synchronize(), passing the necessary data as a
parameter to a custom message that you send to the main form, which the main
form is looking for and then uses the data accordingly before returning
control back to the thread to render the next image.


Gambit
Technical Details
Message-ID: <3f7b74d5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f7b216f@newsgroups.borland.com> <3f7b7121$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,41aab54595cffc86
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-01 18:09:20 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f7b216f@newsgroups.borland.com> <3f7b7121$1@newsgroups.borland.com>
Subject: Re: Thread problem.
Date: Wed, 1 Oct 2003 17:45:36 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.23.78.204
Message-ID: <3f7b74d5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1065055445 67.23.78.204 (1 Oct 2003 17:44:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail