467,210 Members | 1,231 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,210 developers. It's quick & easy.

circular dependency

(Type your message here)

--------------------------------
From: Rimma Meital
I have 2 DLLs (Class Libraries). Both defines single-ton objects - logger object (writes to logger) and application_management object (stores paths and other things, reads ini file of the application).
Both needs to refer to each other ->
application_management can write to a logger and
logger needs to know the path of logger file.

Of course, it's circular dependency problem.
Please help me to solve this problem!!!!!

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>0LKOLe8PR02cv0hQfE/Irg==</Id>
Nov 16 '05 #1
  • viewed: 4057
Share:
1 Reply
Create another class that they can both refer to that has the common stuff
in it.
- Bruce

"Rimma Meital via .NET 247" wrote:
(Type your message here)

--------------------------------
From: Rimma Meital
I have 2 DLLs (Class Libraries). Both defines single-ton objects - logger object (writes to logger) and application_management object (stores paths and other things, reads ini file of the application).
Both needs to refer to each other ->
application_management can write to a logger and
logger needs to know the path of logger file.

Of course, it's circular dependency problem.
Please help me to solve this problem!!!!!

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>0LKOLe8PR02cv0hQfE/Irg==</Id>


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Evelyne | last post: by
1 post views Thread by Henry Miller | last post: by
2 posts views Thread by ernesto basc?n pantoja | last post: by
1 post views Thread by ChrisB | last post: by
4 posts views Thread by Henke | last post: by
2 posts views Thread by Rimma Meital via .NET 247 | last post: by
3 posts views Thread by Rob Clark | last post: by
7 posts views Thread by barias@axiscode.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.