FIX: Passing ADO Recordset ByRef Resets Error Information (264701)
The information in this article applies to:
- Microsoft Data Access Components 2.5
This article was previously published under Q264701 SYMPTOMS
If you pass an ADO recordset by using a ByRef method parameter to an out-of-process COM object and the out-of-process COM object generates an error, this error information may not be properly reported to the client application.
CAUSE
When an ADO recordset is marshalled out-of-process using a ByRef method parameter, custom marshalling code implemented by ADO on both the client and server sides is activated, and this code resets the pending OLE error object that is generated by the COM object.
RESOLUTION
This problem is fixed in the latest service packs for Windows 2000 and MDAC 2.5.
- To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
- To resolve this problem, obtain the latest service pack for Microsoft Data Access Components 2.5. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
293312 INFO: How to Obtain the Latest MDAC 2.5 Service Pack
Date Time Version Size File name Platform
---------------------------------------------------------------
06/09/2000 13:02 2.50.5408.0 327,952 Msadce.dll x86
06/09/2000 12:46 2.50.5408.0 487,696 Msado15.dll x86
WORKAROUND
One workaround is to pass in an ADO recordset using a ByVal parameter and then return an ADO recordset using an return value.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Data Access Components 2.5 Service Pack 2 and Microsoft Windows 2000 Service Pack 2.
Modification Type: | Major | Last Reviewed: | 4/7/2006 |
---|
Keywords: | kbQFE KBHotfixServer kbbug kbfix kbMDAC250SP2fix KB264701 |
---|
|