Microsoft KB Archive/94892

= FIX: GPF When Making .EXE File If Forms Saved as Binary =

Article ID: 94892

Article Last Modified on 1/8/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition

-



This article was previously published under Q94892



SYMPTOMS
In version 2.0, a general protection (GP) fault can occur when you replace text boxes originally created in version 1.0 with the new version 2.0 Masked Edit Text boxes, and then use the existing code. The GP fault occurs in version 2.0 when you try to turn the Visual Basic project into an executable (.EXE) program.



WORKAROUND
To work around the problem, save the project's forms and code in Text format rather than the default Binary format.

Use the following steps to save the code in Text format:


 * 1) Select each form one by one from the Project window.
 * 2) With each form, go to a code window of that form by double-clicking the form or by pressing the F7 key.
 * 3) From the File menu, choose Save Text... to save each form's code as a .TXT file. Then from the File menu, choose Load Text... and highlight the .TXT file just created; then choose the Replace button.
 * 4) After completing steps 1 through 3 for each form in the project, restart Visual Basic and load the project by choosing Open Project... from the File menu.
 * 5) From the File menu, choose Make Exe...



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic version 2.0 for Windows. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows.

Additional query words: buglist2.00 fixlist3.00 2.00 3.00

Keywords: kbbug kbfix KB94892

-

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

© Microsoft Corporation. All rights reserved.