Article ID: 167165
Article Last Modified on 12/10/2003
APPLIES TO
- Microsoft Visual Basic 5.0 Control Creation Edition
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
This article was previously published under Q167165
SYMPTOMS
When compiling, running, or showing a form with too many controls on it, the IDE may fail (crash) with an error similar to one of the following on Windows 95:
-or-
-or-
Under Windows NT 4.0, an error similar to one of the following may be encountered:
-or-
The memory addresses above are just examples. The addresses encountered may vary.
It is also possible for this bug to simply cause the error:
when opening a project that contains Forms with too many controls. This will be most likely encountered when converting a Visual Basic 4.0 application.
CAUSE
When a project with a form containing too many controls is loaded into Visual Basic 5.0, you may encounter incorrect name space mapping of controls. This includes controls that are elements of control arrays. The incorrect mappings may lead to the above-noted problems in the IDE.
RESOLUTION
To work around this bug, follow the steps below:
- Remove any forms that have too many controls from the project.
- With the project loaded, re-add the forms to the project using the "Project\Add File" menu. When you re-add the file in this way, Visual Basic correctly handles the naming of the controls.
NOTE: The forms will have to be added individually every time the project is loaded. Trying to load the entire project will result in error.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Windows 98.
This bug has also been fixed in Visual Studio 97 Service Pack 2.
For more information on the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base:
170365 : INFO: Visual Studio 97 Service Packs - What, Where, and Why
For a list of the Visual Basic 5.0 bugs that were fixed in the Visual Studio 97 Service Pack 2, please see the following article in the Microsoft Knowledge Base:
171554 : INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
Keywords: kbbug kbfix kbvs97sp2fix kboswin98fix KB167165