M
marvind
I came across the following sample code:
while (!ar.EndInvokeCalled)
{
// If you comment out the line below, the loop will not work
// because you have to let the Form process events in the message
queue
Application.DoEvents();
}
I am not using Forms and a tight loop still does not work. Why is that?
What is the correct way to check this property in the parent thread?
Please note that I am not trying to eliminate the busy wait code.
Thanks
while (!ar.EndInvokeCalled)
{
// If you comment out the line below, the loop will not work
// because you have to let the Form process events in the message
queue
Application.DoEvents();
}
I am not using Forms and a tight loop still does not work. Why is that?
What is the correct way to check this property in the parent thread?
Please note that I am not trying to eliminate the busy wait code.
Thanks