Microsoft KB Archive/193341

= BUG: Circular Dependency Error With Embedded UserControls =

Article ID: 193341

Article Last Modified on 1/8/2003

-

APPLIES TO


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

-



This article was previously published under Q193341



SYMPTOMS
When you have a User Control acting as a container of another User Control, an error in the embedded control could generate an invalid "Circular dependencies between modules" error when the program is run.

If you attempt to save the project, you may encounter another error while saving the container UserControl:

Error loading c:\windows\temp\vbXXXX.tmp. A control could not be loaded due to load error. Continue?

If you click Yes, an Invalid Page Fault may occur.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Create a new ActiveX Control project in Visual Basic. UserControl1 is created by default. Add two new User Controls (UserControl2 and UserControl3) to the project. Close the design windows of UserControl2 and UserControl3. From the control toolbox, add an instance of UserControl2 and UserControl3 to UserControl1. Close the design window of UserControl1.  Paste the following code into UserControl2's code window: Private Test As MyTest

</li> Press the F5 key to run the program. An error "Circular dependencies between modules" occurs. The expected error message should read:

"User-defined type not defined".

</li></ol>

Additional query words: kbdss kbDSupport kbVBp kbCtrl kbVBp600bug kbCtrlCreate kbCompiler kberrmsg

Keywords: kbbug KB193341

-

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

© Microsoft Corporation. All rights reserved.