Microsoft KB Archive/194184

= INFO: General Protection Fault Error Handling in VFP 6.0 and 7.0 =

Article ID: 194184

Article Last Modified on 6/11/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q194184



SUMMARY
Visual FoxPro versions 6.0 and 7.0 offer improved error reporting for General Protection Faults (GPF) and Fatal Errors.



MORE INFORMATION
In earlier versions of Visual FoxPro, a General Protection Fault (GPF) or Fatal Error result in the display of one of two dialog boxes: either a Dr. Watson dialog box or a dialog box stating that a GPF has occurred.

In Visual FoxPro 6.0 and 7.0, when a GPF or Fatal Error occurs, a dialog box appears with the program call stack. With the call stack information, you are able to trace the problem code more easily than in earlier versions.

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

This enhanced error reporting can be disabled by editing the registry; to do so, follow these steps:  Click Start, click Run, and then enter REGEDIT. Locate the HKEY_CLASSES_ROOT key, click to select it, and then click New Key on the Edit menu. For the new key name, type VisualFoxpro.6. With this new key selected, clicking New Key on the Edit menu to create another new key beneath it. Name the new key Exceptions.  With the new Exceptions key selected, you will see an entry in the right-hand pane of RegEdit that resembles the following: (Default)               REG_SZ                      (value not set) </li> Double-click the (Default) entry and enter 0 in the Value data box in the window that appears.

A value of 0 in the new key created here will disable the enhanced error reporting in VFP 6.0. To do this for VFP 7.0, perform the same steps again, but in step 3 name the new key VisualFoxpro.7.</li></ol>

Note that this only affects the development versions of VFP 6.0 and 7.0. The run-time versions report the errors described in the first paragraph of the "More Information" section.

<div class="references_section">