Microsoft KB Archive/141737

= BUG: Invalid Page Fault When Form Released in Error Event =

Article ID: 141737

Article Last Modified on 10/15/2003

-

APPLIES TO


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

-



This article was previously published under Q141737



SYMPTOMS
A formset contains a command that releases the form in the form's error event. If the formset is run multiple times and released due to errors, Visual FoxPro will cause an Illegal Operation under Windows 95 and exit to the operating system.



WORKAROUND
Place RELEASE THISFORMSET in the Error Event of the form instead of using RELEASE THISFORM. Then the form will run successfully.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Problem
 Create a Formset containing one form.  In the Activate Event of the form enter the following lines of code: ERROR(1705) ERROR(1705)   Add a command button, and add the following command to its Click event: THISFORM.RELEASE   In the Forms Error event, enter the following code: ? nerror,MESSAGE WAIT RELEASE THISFORM  Run the form two or three times. Visual FoxPro will return an Invalid Page Fault error and exit to the operating system.</ol>

Additional query words: VFoxWin page fault buglist3.00 kbvfp300 kbvfp300b kbvfp500 buglist3.00b

Keywords: KB141737

-

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

© Microsoft Corporation. All rights reserved.