Microsoft KB Archive/191083

= BUG: IPF When Replacing Class Module with UserControl =

Article ID: 191083

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q191083



SYMPTOMS
When replacing a Class module with a UserControl in an ActiveX Control project that has Binary Compatibility set, an Invalid Page Fault (IPF) in module VBA6.dll will occur.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps To Reproduce Behavior
 Start a new ActiveX Control project in Visual Basic. From the Project menu, click Add Class Module. Class1 is created.  Paste the following code into Class1: Public a As Class1  From the File menu, click Make Project1.ocx to compile the project. Select Project1 Properties from the Project menu. From the Component tab choose Binary Compatibility. Remove Class1.</li> Select Add User Control from the Project menu to create a new UserControl. UserControl2 is created.</li> Rename UserControl2 to Class1.</li>  Paste the following code into Class1: Public a As Class1 </li> Compile as Project2.ocx.</li></ol>

The following error occurs:

VB caused an Invalid Page Fault in module VBA6.dll

Keywords: kbbug kbide kbpending KB191083

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.