🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Threads and Timer problem

#14613
From: Phuoc Can HUA
Date: Mon, 04 Aug 2003 23:55
33 lines
2010 bytes
Since you only need time interval of 5s TTimer should be good enough. I 
think there's an example in the online help. You can also drag a TTimer 
component into your form. Double click on the event field. BCB will create 
the header for your timer procedure. Of course, you can use 'new' on TTimer 
like any other class. But the 1st method just helps you to get the idea how 
to define your timer function :-)

BTW, since you said the timer procedure is very resource intensive I assume 
the main is not doing something continuity requied, e.g. playing movie or 
music, otherwise you will see the delay every 5s.

HTH
Phuoc Can HUA

On Mon, 4 Aug 2003 08:14:20 -0800, Paul E. <paulepst69@aol.com> wrote:

> stephan,
>
> I really appreciate your help.
> Can you please supply me with some code on how to start the timer in the
> Execute method, the way you explain it.
>
> Thank your for your help...
>
>
>



-- 
_/\__/\__/\__/\__/\__/\_
www.huaonline.com
My Homepage is my Castle
Technical Details
Message-ID: <oprtenfag9bq7az6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f2daa27@newsgroups.borland.com> <3f2e4804@newsgroups.borland.com> <3f2e865d@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 17:05:29 PST
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Threads and Timer problem
References: <3f2daa27@newsgroups.borland.com> <3f2e4804@newsgroups.borland.com> <3f2e865d@newsgroups.borland.com>
Message-ID: <oprtenfag9bq7az6@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: Phuoc Can HUA <home}a+t{huaonline.com>
MIME-Version: 1.0
Date: Tue, 05 Aug 2003 09:55:48 +1000
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 210.9.89.210
X-Trace: newsgroups.borland.com 1060041602 210.9.89.210 (4 Aug 2003 17:00:02 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-09!supernews.com!news.maxwell.syr.edu!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail