Microsoft KB Archive/315134

= FIX: An exception error occurs when you activate the Properties window after you save and close a report =

Article ID: 315134

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition

-



This article was previously published under Q315134



SYMPTOMS
You open the Document View window. In the Report Designer, you save and then close a report after making a selection in the Properties window. Visual FoxPro 7.0 reports the following error message and closes:

Fatal Exception: Exception Code: C0000005

This error can also occur with the Document View window closed if you choose a nondefault property in the Properties window.



RESOLUTION
To resolve this problem, obtain the latest service pack for Visual FoxPro for Windows 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

316964 How to Obtain the Latest Visual FoxPro for Windows 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in Microsoft Visual FoxPro for Windows 7.0. This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.



Steps to Reproduce Behavior
  Create a program named &quot;Test&quot; and add the following code to it: ACTIVATE WINDOW &quot;document view&quot; CLOSE DATABASES ALL OPEN DATABASE HOME+'samples\data\testdata' SET RESOURCE OFF DELETE FILE testxx.fr? MODIFY REPORT testxx NOWAIT ACTIVATE WINDOW &quot;report designer - testxx.frx&quot; KEYBOARD '{alt+v}e{shift+f10}a{alt+a}{alt+c}c' DOEVENTS ACTIVATE WINDOW properties KEYBOARD '{ctrl+pgup}' ACTIVATE WINDOW &quot;report designer - testxx.frx&quot; KEYBOARD '{ctrl+w}' DOEVENTS ACTIVATE WINDOW properties RETURN  Save the file and then run the program from the Command window.
 * Open DE, bring up context menu,
 * add first table in DBC, and then close the Add dialog.
 * Select DE in Property window object dropdown.
 * Save and close the Report Designer.

The error mentioned in the &quot;Symptoms&quot; section appears and Visual FoxPro closes.

To see the error with the Document View window closed, place the following code in a program file and then run it. Note that you may need to run the code multiple times to cause the error. RELEASE WINDOW &quot;document view&quot; CLOSE DATABASES ALL OPEN DATABASE HOME+'samples\data\testdata' SET RESOURCE OFF DELETE FILE testxx.fr? MODIFY REPORT testxx NOWAIT ACTIVATE WINDOW &quot;report designer - testxx.frx&quot; KEYBOARD '{alt+v}e{shift+f10}a{alt+a}{alt+c}c' DOEVENTS ACTIVATE WINDOW properties KEYBOARD '{ctrl+pgup}' ACTIVATE WINDOW &quot;report designer - testxx.frx&quot; KEYBOARD '{ctrl+w}' DOEVENTS ACTIVATE WINDOW properties KEYBOARD '{shift+f10}n' RETURN
 * Open DE, bring up context menu,
 * add first table to DBC, and then close Add dialog.
 * Select DE in Properties window object dropdown.
 * Save and close the Report Designer.
 * Properties window context menu, nondefault properties only.

Additional query words: C0000005 error crash kbVFP700sp1fix

Keywords: kbbug kbfix kbcodesnippet kbdesigner kbvfp700fix KB315134

-

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

© Microsoft Corporation. All rights reserved.