When making an asynchronous call in .NET,waiting for AsyncResult.IsCompleted to return true never happens

When making an asynchronous call in .NET,waiting for AsyncResult.IsCompleted to return true never happens

book

Article ID: KB0085958

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Resolution:
When using .NET and making an asynchronous call, if you wait for the AsyncResult.IsCompleted property to return true by using Thread.sleep, sometimes the handler callback will not happen.

This problem typically happens when running in debug mode. Running the same code after turning off debug mode will work normally.

Issue/Introduction

When making an asynchronous call in .NET,waiting for AsyncResult.IsCompleted to return true never happens