BUG: C0000005 Fatal Error Using GETPEM() in Loop with DebuggerID: Q221745
|
Placing the GetPem() function in a loop while tracing the code more than once in the Debugger causes the following error in Visual FoxPro 6.0:
Note that the error message also contains information regarding the line number of the program running when the error occurred.Fatal error: Exception code: C0000005
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
The Visual Studio 6.0 Service Pack 3 readme file erroneously lists this bug as having been fixed. Service Pack 3 did not fix this bug.
DO doit
CLEAR ALL
DO doit
PROC doit
SET EXACT ON
oForm = CREATEOBJECT( "Form" )
oForm.ADDOBJECT("lbl1", "label")
FOR EACH loObject IN oForm.OBJECTS
m = AMEMBERS( laMembers, loObject )
lcClass = loObject.CLASS
FOR j = 1 TO m
IF ( ! pemstatus( loObject, laMembers[j], 1 ) )
luClassValue = getpem( lcClass, laMembers[j] )
ENDIF
ENDFOR
ENDFOR
ENDPROC
Additional query words:
Keywords : kbMiscTools kbVFp600 kbVS600sp3 kbGrpFox kbDSupport
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 30, 1999