🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.deployment
Article #210

Re: Error handler

#210
From: Hern�n Tornielli
Date: Fri, 07 Jan 2005 01:53
22 lines
1733 bytes
"Pablo Mena" wrote:

> Having 2 or more timer event handler, if one of them locks waiting for a
> response, the whole program blocks.

Not sure I understand your question correctly. If you block the main thread, 
then the program is blocked. That's normal behaviour.

For example, this will block your program:

void __fastcall OnButtonClick(TObject* Sender)
{
    while(true);
}

> Is it possible to block just the event handler waiting for the answer and
> remain the other working properly?

If you want a routine waiting for an event without blocking your program, 
then you will need to put that routine in a different thread.

Hern�n Tornielli 
Technical Details
Message-ID: <41ddeb6d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41dbd9cb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,6fa8cafd6ff052e7
X-Google-Attributes: gidf8e54,public
X-Google-Language: ENGLISH,ASCII
From: "Hern�n Tornielli" <hernan@ranquel.removethis.net>
Newsgroups: borland.public.cppbuilder.deployment
References: <41dbd9cb@newsgroups.borland.com>
Subject: Re: Error handler
Date: Thu, 6 Jan 2005 22:53:12 -0300
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 200.59.51.220
Message-ID: <41ddeb6d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105062765 200.59.51.220 (6 Jan 2005 17:52:45 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail