FIX: Access Violation with Public Enums in UserControl (177703)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q177703 SYMPTOMS
When exiting a Visual Basic 5.0 ActiveX Control project in the design
environment, an Access Violation error occurs and Visual Basic is
terminated.
CAUSE
This problem can occur when declaring Public Enum in the UserControl module
when running Visual Studio 97 Service Pack 2 (SP2.)
RESOLUTION
Move the Public Enums to a standard (.bas) module instead of the
UserControl module.
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 Visual Basic 6.0.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbBug kbControl kbCtrlCreate kbfix kbVBp600fix KB177703 |
---|
|