"Don" <(E-Mail Removed)> wrote in message
news:_aTKc.57031$Mr4.54266@pd7tw1no...
> I've got a problem with two DLLs that are referencing each other. Here is
> the breakdown of the problem (the identifiers I use are not the real
ones):
>
> 1. DLL-One declares a Class-X.
>
> 2. DLL-Two has a public method that has a parameter of Class-X (reference
to
> DLL-One required).
>
> 3. DLL-One calls the public method from DLL-Two, passing it an instance of
> Class-X (reference to DLL-Two required).
>
> 4. VB Gives me an error in DLL-One stating "Reference required to assembly
> 'DLL-One' containing the type 'Class-X'. Add one to your project.
This is a cyclic reference, and although .NET will take care of it for you,
it is a huge sign you should need to consider rethinking your design. The
fact that the two DLLs are inseperable, means that you should just combine
them into one DLL, or seperate out the cyclic dependancies, and put them
into a single DLL together.
If you do this, it will improve the overall quality or your design, and it's
almost certain to fix the error.
HTH,
Jeremy
|