FIX: Report Preview error with properties window and data environment open (315069)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 7.0

This article was previously published under Q315069

SYMPTOMS

When you preview a report with the Properties window and data environment of the report open, Visual FoxPro closes after reporting the following error:
Fatal Error: Exception code: C0000005
This error does not occur if the data environment is not open when the preview appears.

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 the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Visual FoxPro for Windows 7.0 Service Pack 1.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a program called "Test" and add the following code:
    ACTIVATE WINDOW "properties"
    CREATE TABLE test (f1 i,f2 c(10))
    INSERT INTO test VALUES(1,"aaa")
    CREATE REPORT testrepo FROM test
    MODIFY REPORT testrepo nowait
    
    KEYBOARD '{ALT+V}E'
    DOEVENTS
    REPORT FORM testrepo PREVIEW
    					
  2. Save the program and then execute the program from the Command window.

Modification Type:MajorLast Reviewed:2/11/2005
Keywords:kbbug kbfix KB315069