Thread View: borland.public.cppbuilder.deployment
2 messages
2 total messages
Started by Pablo Mena
Wed, 05 Jan 2005 12:13
Error handler
Author: Pablo Mena
Date: Wed, 05 Jan 2005 12:13
Date: Wed, 05 Jan 2005 12:13
13 lines
1202 bytes
1202 bytes
Product: Borland C++ Builder 6.0 Professional Problem: Having 2 or more timer event handler, if one of them locks waiting for a response, the whole program blocks. Is it possible to block just the event handler waiting for the answer and remain the other working properly? Pablo
Re: Error handler
Author: Hern�n Tornielli
Date: Fri, 07 Jan 2005 01:53
Date: Fri, 07 Jan 2005 01:53
22 lines
1733 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads