FIX: Unloading Form from Control Array Event Causes Application Error (269445)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0 SP4
- Microsoft Visual Studio 6.0 SP4
This article was previously published under Q269445 SYMPTOMS
You have a Visual Basic project that has a form with control array. You unload the form inside of control array's event handler and when the form unloads, you set the form to be Nothing. The project works fine with Visual Studio 6.0 Service Pack 3 installed. However, if Visual Studio 6. 0 Service Pack 4 is installed on the computer, the application stops responding when the control array's event to unload the form is fired.
RESOLUTION- To work around the problem for scenarios 1 and 2 (as described in the "More Information" section of this article), don't set the form to nothing when the form is unloaded.
- To work around the problem for scenario 3, make a form-level reference to the form that will not lose scope while the form is active. To do so, add the following to the General Declarations section:
Private f as Form
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next service pack that contains this hotfix. To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 10/5/2005 |
---|
Keywords: | kbBug kbfix kbQFE KB269445 |
---|
|