Microsoft KB Archive/221657

= FIX: C0000005 Error with Specific Access Methods and Debugger =

Article ID: 221657

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q221657



SYMPTOMS
Under a specific set of circumstances involving Access methods in custom classes and the use of the debugger, Visual FoxPro displays the following error message:

Fatal error: Exception code=C0000005

This behavior may not happen if you run the form using the Run button (!) in the system toolbar although this sometimes can occur.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

The Visual Studio 6.0 Service Pack 3 readme lists this bug as being fixed. Service Pack 3 did not fix this bug.



Steps to Reproduce Behavior
 Create a new class based on PageFrame. From the Class menu, select Edit Property/Method. Select the MousePointer property from the Property/Method Information list. Select the Access method check box. From the Property/Method Information list, select the Name property. Select the Access method check box. Click Close and click Yes to save changes. Press Ctrl-W to save the class. Create a new form. On the Form Controls toolbar, click View Classes. Select Add and select the VCX file in which your PageFrame class was saved. Add your custom PageFrame class to the form.</li>  Add a command button to the page frame. In the command button's click event, add the following code:

SET STEP ON                       </li> Run the form using the DO FORM command.</li> Click the command button on the page frame.</li> After the debugger opens, switch back to Visual FoxPro.</li> Move the mouse pointer over the page frame.</li></ol>

NOTE: If the mouse pointer is moved over the page frame for a while, the following error is displayed:

Fatal error: Exception code=C0000005

Additional query words: KBDSE

Keywords: kbbug kbfix kboop kbcontainer kbctrl kbpending KB221657

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.