🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Not enough timers available

#13002
From: Ed Mulroy [TeamB]
Date: Mon, 03 Nov 2003 19:27
31 lines
2414 bytes
Schedulers running in the background and other programs running can consume
timers independent of what your program does.  I do not think that by
disabling a timer it is then made available to others.

You might consider running a timer which has as its interval a number which
is the increment or an integral division of the increment for each of the
timers in your app.  Let the other timer routines register their callback
and interval and the one timer can dispatch to them.

.  Ed

> In�s Fern�ndez wrote in message
> news:3fa6983b$1@newsgroups.borland.com...
>
> I have developed an aplication that has been working fine for
> weeks in different computers, but yesterday a client called
> saying that he got error "Not enough timers available".
>
> I have been looking in the code and found that in all the
> aplication there are only five timers used in different forms,
> and each time a timer event is called I disable the timer to
> be sure it is not called again before the event finishes. I
> enable the timer always at the end of the event function.
> If it is working as I expect it shoud be destroying all the
> forms after using them as well.
>
> The client that got that error works with Windows 2000
> server.
>
> Has anyone any ideas about what can be happening and
> how can I solve that?
Technical Details
Message-ID: <3fa6ac12@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.belwue.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-03 11:41:02 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.cppbuilder.vcl.components.using
References: <3fa6983b$1@newsgroups.borland.com>
Subject: Re: Not enough timers available
Date: Mon, 3 Nov 2003 14:27:02 -0500
Lines: 33
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.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3fa6ac12@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067887634 24.74.175.102 (3 Nov 2003 11:27:14 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!irazu.switch.ch!switch.ch!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail