FIX: ADODB Jet 4.0 Recordset.Seek Causes Application Error on Recordset.Close (239941)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.1 SP1
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
This article was previously published under Q239941 SYMPTOMS
Closing the Recordset after the Seek may result in the following error message:
Application Error - The Instruction at '0x------' referenced memory at '0x------'. The memory could not be written.
CAUSE
ADO is not properly releasing memory after freeing the fields collection on Recordset.Close.
RESOLUTION
Recordset.Seek works if there is no mix of syntax between multiple and single-index columns. For instance, if you use the following syntax:
Recordset.Seek Array("12345"), adSeekFirstEQ
Do not follow with this syntax:
Recordset.seek Array("12345", "12"), adSeekFirstEQ
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
This problem is fixed in Microsoft Data Access Components 2.6 (MDAC 2.6). You may download the latest version of the Microsoft Data Access Components from the following Microsoft Web site:
REFERENCES
For more information on various Methods, please see the following list of references on the Microsoft Developer Network:
Modification Type: | Minor | Last Reviewed: | 5/30/2006 |
---|
Keywords: | kbBug kbDatabase kbfix kbMDAC260fix KB239941 |
---|
|