Microsoft KB Archive/145566

= FIX: App Error Occurs After Saving a Changed Module Name =

Article ID: 145566

Article Last Modified on 12/9/2003

-

APPLIES TO


 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q145566



SYMPTOMS
An application error occurs when you save a module if you change the module's name in the property sheet and use the keyboard shortcut CTRL+S to save the module before pressing the ENTER key. This behavior does not occur when you save the module by clicking Save File on the File menu.



RESOLUTION
Use one of the following methods to work around this behavior:


 * Change the module name and press the ENTER key before saving the module using the shortcut key CTRL+S.
 * Save the module by clicking Save File on the File menu.



STATUS
Microsoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual Basic version 5.0 for Windows.



Steps to Reproduce Behavior

 * 1) Start Visual Basic 4.0, or if it is already running, click New Project on the File menu.
 * 2) On the Insert menu, click Module to insert a module into the project.
 * 3) On the File menu, click Save File to save the module as TEST.BAS.
 * 4) On the module's property sheet, change the name property to Test and press CTRL+S. An application error occurs with one of the following messages and Visual Basic ends:

32-bit Visual Basic

Windows NT 3.51

An application error has occurred and an application error log is being generated. VB32.exe, Exception: access violation (0xc0000005), Address: 0x004b788b.

Windows 95 or Windows 98

This program has performed an illegal operation and will be shut down. VB32 caused an invalid page fault in module VB32.EXE at 0137:004b788b.

16-bit Visual Basic under all operating systems

VB caused a General Protection Fault in module VB.EXE at 003E:05CED. Choose Close. VB will close.

Keywords: kbbug kbfix kbide kbvbp500fix KB145566

-

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

© Microsoft Corporation. All rights reserved.