Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Java OLE DB Simple Provider Does Not Work Reliably


View products that this article applies to.

This article was previously published under Q225047

↑ Back to the top


Symptoms

An OLE DB Provider created using the Visual J++ 6.0 and the OLE DB Simple Provider Toolkit does not work reliably. When attempting to use such a provider from ActiveX Data Object (ADO) via the Recordset.Open() method, the following error occurs:
-2147217865 (0x80040E37) Description unavailable.
The following application error may occur when using the provider from a Visual J++ or Visual Basic client:
The instruction at '0x7c00ba36' referenced memory at '0x00000004'. The memory could not be 'read'.
The following application error may occur when using the provider from a Visual C++ client:
Unhandled exception in <program.exe> (MSJAVA.DLL): 0xC000005: Access Violation

↑ Back to the top


Cause

The Microsoft OLE DB Simple Provider component (Msdaosp.dll) does not properly implement COM reference counting. This causes erratic results with any client of the provider, because the provider may release itself when its real reference count is greater than zero.

↑ Back to the top


Resolution

This problem has been fixed with Microsoft Data Access Components (MDAC) 2.1 Service Pack 2 (SP2). You can download the latest MDAC from the following Microsoft Universal Data Access Web site:

↑ Back to the top


Status

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

The new release of MDAC also fixes a problem in the Java OLE DB Simple Provider, which causes access violation errors when using the Recordset.Delete() method.

↑ Back to the top


References

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
236044� Java OLE DB Simple Provider Crashes in Recordset.Delete() Method

↑ Back to the top


Keywords: kbbug, kbdatabase, kbfix, kbmdac210sp2fix, KB225047

↑ Back to the top

Article Info
Article ID : 225047
Revision : 6
Created on : 5/17/2007
Published on : 5/17/2007
Exists online : False
Views : 501