Article ID: 167165 - Last Review: December 10, 2003 - Revision: 2.0 FIX: Too Many Controls on a Form May Crash Visual Basic IDEThis 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:
"This program has caused an illegal operation and will be shut down. If the problem persists, contact the program vendor. VB5 caused an invalid page fault in module VB5.EXE"
-or-
"This program has caused an illegal operation and will be shut down. If the problem persists, contact the program vendor. VB5 caused an invalid page fault in module VBA5.DLL"
-or-
"Error encountered durring load"
"Application Error: The instruction at "0x00417DAA" referenced memory at "0x021E41FA". The memory could not be "read". Unhandled exception in VB5.EXE 0xC0000005: Access Violation"
-or-
"Application Error: The instruction at "0x0FAD85F8" referenced memory at "0x01EE0112". The memory could not be "read." Unhandled exception in VBA5.DLL 0xC0000005: Access Violation" It is also possible for this bug to simply cause the error:
Error encountered during load
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:
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
(http://support.microsoft.com/kb/170365/EN-US/
)
: 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
(http://support.microsoft.com/kb/171554/EN-US/
)
: INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
APPLIES TO
| Article Translations
|

Back to the top
