Knowledge Base

FIX: Tracing Main Program After DO *.PJX Causes Exception Err.

Article ID: 133033

Article Last Modified on 9/30/2003


APPLIES TO


This article was previously published under Q133033

SYMPTOMS

The series of steps described under the More Information section is a process in which someone mistakenly chooses to DO <*.PJX> file from the Visual FoxPro user interface. Then the user gets a "Syntax error". Realizing a mistake was made, the user opens the *.PJX file and runs the proper *.PRG file. When the "Syntax error" appears again upon doing the *.PRG file, the user suspends the error and brings up the Trace Window to find out where the error is. At that point, a crash occurs in Visual FoxPro.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Run this command:
       CREATE PROJECT test_pro
    						
  2. Select the Code tab.
  3. Click the New button.
  4. Type WAIT WINDOW into Program1.
  5. Press CTRL+W to save the file as TEST_PRO.PRG and exit the Program Editor. (The .PRG file must have the same name as the .PJX file).
  6. Run this command:
       DO TEST_PRO.PJX.
    						
  7. Cancel the resulting "Syntax error" and edit window.
  8. Run this command:
       MODIFY PROJECT test_pro.
    						
  9. Select the Code tab and drill down to Programs.
  10. Select the program file TEST_PRO, and click the Run button.
  11. Suspend the "Syntax error."
  12. On the Tools menu, click Trace window.
  13. Click Resume in the Trace window.
  14. Cancel the "Syntax Error."
  15. Close the program editing window. At this point, a crash occurs in Visual FoxPro.

Keywords: kbbug kbfix kbvfp500fix KB133033