BUG: Error Message "Async Operation Is Pending" Using RDS DataControl (245509)
The information in this article applies to:
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Remote Data Service for ADO
- Remote Data Service for ADO 2.1 SP2
- Remote Data Service for ADO 2.6
- Remote Data Service for ADO 2.7
This article was previously published under Q245509 SYMPTOMS If you try to access the methods or properties of an RDS
DataControl object that has been executed asynchronously, you see one of the
following errors: Run-time error '4113': Can't perform
operation with an async operation pending Run-time error '4113': Operation cannot be
performed while async operation is pending. Run-time error '91': Object variable or
With block variable not set The error occurs when you try to use the
DataControl's Recordset collection, SortColumn property, Refresh method, or
Reset method. The errors occur despite checking the status of the
Data Control's ReadyState flag to see if execution is complete. CAUSE The errors occur because the DataControl is still executing
the recordset.
Although it should be possible to use the
DataControl's ReadyState property to determine when the execution is finished,
ReadyState incorrectly indicates that execution is complete before execution is
actually complete. That is, the flag that signals the end of the asynchronous
execution does not get set until after the ReadyState flag has been set and the
ReadyState notification has fired.
The same behavior occurs when
using the DataControl's OnReadyStateChange event. The ReadyState is
incorrectly reported as complete if checked within the OnReadyStateChange
event. RESOLUTION One workaround is to change the ExecuteOptions property of
the DataControl to 1, adcExecSync, so that execution is synchronous.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
REFERENCES For additional information on the Remote Data Service
DataControl, please refer to the topic "RDS.Data Control" in MSDN Online Help.
Modification Type: | Minor | Last Reviewed: | 8/19/2005 |
---|
Keywords: | kbBug kbDatabase kbpending KB245509 |
---|
|