BUG: ERROR MESSAGE() Function with ODBC Connection Causes Error (187746)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Data Access Components 2.5
This article was previously published under Q187746 SYMPTOMS
Placing the ERROR MESSAGE() function before or after an SQLCONN() command
causes Visual FoxPro 5.0x to perform an illegal operation under Windows NT
4.0. Under Windows 95, the following error appears:
This application has performed and illegal operation and will be
shutdown.
Clicking the Details button reveals the following message:
VFP caused an invalid page fault in
module <unknown> at <memory address>.
CAUSE
The behavior only occurs when the ERROR MESSAGE text is a null string. If
any error occurs before SQLConnect() is called, ERROR MESSAGE() reports the
text of the last error, and the code does not cause the memory protection
fault.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbbug kbpending KB187746 |
---|
|