BUG: Access Violation Occurs in ADO When You Close the Form and Run the Executable File (314746)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q314746 SYMPTOMS
You receive an access violation in ADO under the following circumstances:
- Call the Debug.Print method on certain properties of the ADO Recordset object.
- Compile the project.
- Run the file as an executable (.exe) file.
CAUSE
This problem occurs because the compiler does not remove the Debug.Print statement correctly.
RESOLUTION
To resolve this problem, use one of the following methods:
- Remove the Debug.Print statement from the code.
- Store the property value in a variable.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 1/2/2002 |
---|
Keywords: | kbbug kbDSupport KB314746 |
---|
|