FIX: Public Type Statement Causes Application Error (223116)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q223116 SYMPTOMS
An ActiveX control project with a public user-defined variable and event is created. When the ActiveX control is placed in a Standard EXE project and then run from the IDE, the event executes properly.
When the Standard EXE project is run using the compiled ActiveX control, attempting to execute the event in the ActiveX control generates the following error message:
Run-time Error '-2147417848(80010108)':
Method 'ReDimUDT' of object 'UserControl1' failed
RESOLUTION
To prevent this behavior, declare variables of a user-defined type in ActiveX controls as Private variables.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio 6.0 Service Packs, please see the following articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why 194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbBug kbfix kbVS600sp3fix KB223116 |
---|
|