KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

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

Article: Q94892
Product(s): Microsoft Visual Basic for Windows
Version(s): 2.0
Operating System(s): 
Keyword(s): 
Last Modified: 23-DEC-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual Basic Standard Edition for Windows, version 2.0 
-------------------------------------------------------------------------------

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          :  
Technology        : kbVBSearch kbAudDeveloper
Version           : :2.0
Issue type        : kbbug
Solution Type     : kbfix

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.