Microsoft KB Archive/142736

= PRB: RETRY Command in Method Causes Visual FoxPro to Quit =

Article ID: 142736

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition

-



This article was previously published under Q142736



SYMPTOMS
An "ON ERROR . " command is used to trap for an error. The ON ERROR command calls a method of an object. Inside the method, RETRY will trigger a "Mismatched pushjmp/popjmp call" error, which is not listed in the Help File. After you click OK, Visual FoxPro quits.



WORKAROUND
Do not call a method from an ON ERROR command. Call a program file instead.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a new form.  Add the following code to the form's Load event: ON ERROR _Screen.Activeform.Mymethod   Create a new method of the form called Mymethod, and type the following code into it: PUBLIC obj1 obj1=_Screen.Activeform RETRY   Place a command button on the form, and enter the following code in its Click event: obj1.Caption="Fox"  Run the form, and click the command button. The Error "Mismatched' pushjmp/popjmp call" is triggered. Inside the help for the error is the message "The topic does not exist. Contact your application vendor for an updated Help File (129)." Click OK, and Visual FoxPro quits.</li></ol>

Additional query words: VFoxWin crash terminate abort

Keywords: KB142736

-

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

© Microsoft Corporation. All rights reserved.