Microsoft KB Archive/297851

= FIX: Syntax Error in Startup Program Causes Fatal Exception =

Article ID: 297851

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q297851



SYMPTOMS
When there is a syntax error in a program run at startup from the Config.fpw file, Visual FoxPro may close without warning.



STATUS
This problem was corrected in Microsoft Visual FoxPro version 7.0 for Windows.



Steps to Reproduce Behavior
  Create the following program and save it as &quot;c:\temp\vfpStart.prg&quot;: DEFINE BAR 50 OF _MTOOLS PROMPT 'test' ON SELECTION BAR 50 OF _MTOOLS x =  && Intentional error   Compile the program: COMPILE c:\temp\vfpStart.prg   Create the following config file and save it as &quot;c:\temp\config.fpw&quot;: COMMAND=DO c:\temp\vfpStart.prg   Run the following code in the Command window: lcCmd = '&quot;' + HOME + 'vfp6.exe' + '&quot; -cc:\temp\config.fpw' RUN /N &lcCmd. 

Visual FoxPro opens and then closes immediately.

Keywords: kbbug kbfix kbcodesnippet kbvfp700fix KB297851

-

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

© Microsoft Corporation. All rights reserved.