Article View: borland.public.cppbuilder.nativeapi
Article #14736Re: Threads and Timer problem
From: Malcolm Smith
Date: Mon, 04 Aug 2003 11:26
Date: Mon, 04 Aug 2003 11:26
25 lines
2099 bytes
2099 bytes
I forgot to mention, your code is no better than if you dropped a TTimer on the form and made it active from the button click. Your methods are still processed within the context of the main VCL thread because of the Synchronize call. -- Malcolm Smith MJ Freelancing- http://www.mjfreelancing.com Software Protection for C++Builder Borland Technology Partner "Malcolm Smith" <mjfreelancing@optusnet.com.au> wrote in message news:3f2e415c$1@newsgroups.borland.com... > I'm not sure why you are triggering a TTimer this way. If you are after a > thread that processes a task after a given period of time check out my > tutorials page. I have just the class for you. Look for TWaitEventThread. > > -- > Malcolm Smith > MJ Freelancing- http://www.mjfreelancing.com > Software Protection for C++Builder > Borland Technology Partner >
Technical Details
Message-ID:
<3f2e41c5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!propagator2-SanJose!news-in-sterling.newsfeed.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f2daa27@newsgroups.borland.com> <3f2e415c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ece7f64e3f770b72 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-04 04:40:07 PST Reply-To: "Malcolm Smith" <mjfreelancing@optusnet.com.au> From: "Malcolm Smith" <mjfreelancing@optusnet.com.au> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f2daa27@newsgroups.borland.com> <3f2e415c$1@newsgroups.borland.com> Subject: Re: Threads and Timer problem Date: Mon, 4 Aug 2003 21:26:37 +1000 Lines: 27 Organization: MJ Freelancing 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: 211.28.166.113 Message-ID: <3f2e41c5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059996101 211.28.166.113 (4 Aug 2003 04:21:41 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!news-out1.nntp.be!propagator2-sterling!propagator2-SanJose!news-in-sterling.newsfeed.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail