BUG: Crash When Closing Table with Dirty @...GET and READ Active (253640)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q253640 SYMPTOMS
Microsoft Visual FoxPro 6.0 crashes with the following Fatal Exception error:
Fatal Exception Error: Exception code=C0000005
In Visual FoxPro versions 3.0 and 5.0, the crash is an Application Error with the following text:
The instruction at <some memory address> referenced memory at "0x00000000". The memory could not be "read".
-or-
VFP has generated error and will be closed by Windows.
You will need to restart the program.
Visual FoxPro for Macintosh crashes with an error of Type 2.
These errors are normally encountered running legacy code from earlier versions of FoxPro after editing data in an @...GET field and ending the data entry session.
CAUSE
This crash is caused by closing the table that the @...GETS are using before closing the window that the @...GETS are in.
RESOLUTION
In the code shown below, the "RELEASE WINDOW ctest" line of code should be moved so that it appears before the
"CLOSE DATABASES" line of code to prevent the crash.
Release the window the @...GETS are in before closing the table. The Endit procedure in the sample code in "More Information" section
can be modified to prevent the crash.
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: | 5/12/2003 |
---|
Keywords: | kbBug kbpending kbXBase KB253640 |
---|
|