🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Error handler

#21
From: Danila Vershinin
Date: Fri, 01 Apr 2005 21:22
30 lines
1859 bytes
Yeah, right
Just use the Create Thread Wizard in C++ Builder 6 , that will save your 
time =)
(New->Thread.. :)

"Hern�n Tornielli" <hernan@ranquel.removethis.net> wrote in message 
news:41ddeb6d@newsgroups.borland.com...
> "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: <424ed896@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41dbd9cb@newsgroups.borland.com> <41ddeb6d@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: "Danila Vershinin" <danprep@yahoo.com>
Newsgroups: borland.public.cppbuilder.deployment
References: <41dbd9cb@newsgroups.borland.com> <41ddeb6d@newsgroups.borland.com>
Subject: Re: Error handler
Date: Sat, 2 Apr 2005 01:22:40 +0400
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 62.33.222.218
Message-ID: <424ed896@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1112463510 62.33.222.218 (2 Apr 2005 09:38:30 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail