Article View: borland.public.cppbuilder.nativeapi
Article #4559Re: Animation with TThread in non client area (border form)
From: Remy Lebeau (TeamB)
Date: Mon, 09 Jan 2006 19:16
Date: Mon, 09 Jan 2006 19:16
16 lines
1550 bytes
1550 bytes
"Carlos" <a@a.com> wrote in message news:43c29a01@newsgroups.borland.com... > I created an animation with TThread class. That code is not thread-safe at all. You are accessing the MainForm in an unsafe manner. You need to use the thread's Synchronize() method when objects of the main thread. Also, there is nothing in that thead code that can't be done in the main thread directly. The thread is not helping you at all, so you should get rid of the thread altogether and use a simple timer instead to handle your animation. Gambit
Technical Details
Message-ID:
<43c2b613$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!west2.newsfeed.sprint-canada.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43c29a01@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7abd13b8dc24dd8a 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: <43c29a01@newsgroups.borland.com> Subject: Re: Animation with TThread in non client area (border form) Date: Mon, 9 Jan 2006 11:16:45 -0800 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: <43c2b613$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1136834067 68.69.17.41 (9 Jan 2006 11:14:27 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!west2.newsfeed.sprint-canada.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail