πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Not enough timers available

#12931
From: Colin Maharaj
Date: Thu, 06 Nov 2003 22:02
15 lines
1724 bytes
Hi InοΏ½s,
It is very easy to drop a timer on a Form and use this, but it is far
better
if your application is multithreading, and instead uses threads.

What I do, is invoke the wizard to create a thread, and take this thread
and put the declaration for it in the same place as the form I want the
tread to run in AND take the generated code and use it in the Form.cpp 
file.

Threads are a better way of doing what appears to be many things at once
and you can just place a Sleep call in the thread loop to create the 
delay you want as in the timer...actually this is recommended.

There is some effort in understanding threads but it will be worth it.
Technical Details
Message-ID: <3FAAC4DA.4930B660@cablenett.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fa6983b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,b8fa3a8b1adf4915
X-Google-Attributes: gid10cc67,public
X-Google-Thread: f5c5c,b8fa3a8b1adf4915
X-Google-Attributes: gidf5c5c,public
X-Google-ArrivalTime: 2003-11-06 14:10:45 PST
Message-ID: <3FAAC4DA.4930B660@cablenett.net>
Date: Thu, 06 Nov 2003 18:02:02 -0400
From: Colin Maharaj <cbm@cablenett.net>
Reply-To: cbm@cablenett.net
X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.cppbuilder.vcl.components.using
Subject: Re: Not enough timers available
References: <3fa6983b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 196.32.37.86
X-Trace: newsgroups.borland.com 1068156280 196.32.37.86 (6 Nov 2003 14:04:40 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail