circular dependency is a relation between two or more modules which either directly or indirectly depend on each other to function properly.
Questions tagged [circular-dependency]
1693 questions
0
votes
1 answer
WCF circular references in data contract
I have a WCF contract with circular references. For a simple parent-child relationship, the solution is pretty simple with .NET 3.5SP1 or greater - the IsReference property of a DataContract (this page has a good explanation).
However, my…

nlawalker
- 6,364
- 6
- 29
- 46
0
votes
2 answers
Tables that reference each other
I have 2 tables with a circular dependency;
each group has a leading member
+---------+-------+----------+
| GroupId | Group | MemberId |
+---------+-------+----------+
| 1 | g1 | 1 |
+---------+-------+----------+
and each member…

Gary In
- 687
- 3
- 10
- 19
0
votes
3 answers
C++ template function causes circular dependancy
How would it be possible to solve a circular dependency caused by template functions?
For example, I have an Engine class defined that stores a list of Entities, and is responsible for creating entities and adding / removing components from…

sangwe11
- 123
- 6
0
votes
0 answers
Avoid Gradle to call child task automatically?
I have :myRootProject:myTask that is adding automatically a dependency on :myRootProject:myChildProject:myTask
I do not want Gradle to do that, because myChildProject:myTask depends on myRootProject:myTask and I get a circular dependency
How can I…

lqbweb
- 1,684
- 3
- 19
- 33
0
votes
1 answer
RequireJS, Circular Dependencies and Exports "Magic" Method
I've been trying to get RequireJS set up to handle circular dependencies using the special 'exports' magic module as recommended by James Burke's answer to this question.
Following the example given by @jrburke in that question:
define("Employee",…

Michael.Lumley
- 2,345
- 2
- 31
- 53
0
votes
1 answer
Requirejs dynamic reference to sub module methods?
Using requires, I’ve split larger class structures down into modules that use other modules within directory. There’s a main file that instantiates the other sub modules. This is an API class with two modules. One that deals with posting data to the…

Matt Kaye
- 465
- 1
- 5
- 15
0
votes
1 answer
StructureMap problems with bidirectional/circular dependencies
I am currently integrating StructureMap within our business layer but have problems because of bidirectional dependencies.
The layer contains multiple managers where each manager can call methods on each other: there are no restrictions or rules for…

leozilla
- 1
- 1
- 1
0
votes
0 answers
iOS - Circular Imports - fixing blocks and typedef enums
I am getting an error that this block, which I defined in a header file, has 78 duplicate symbols. I have tried putting it in the precompiled header file but I still get the same results.
This is the error: ld: 34 duplicate symbols for architecture…

Dylanthepiguy
- 1,621
- 18
- 47
0
votes
1 answer
Is this bad code? If it is then how to work around it?
Is this considered circular dependency? I don't like that part where I have to pass the object itself to IRule... Is there a way to work around this?
public interface IRule
{
void Apply(World world);
}
public class World
{
public…

omsharp
- 300
- 1
- 13
0
votes
0 answers
Eclipse plugins - Avoid circular dependency using Observer Pattern
I have created two different plugins from a source plugin. The first plugin contains application logic classes and the second one contains User Interface classes.
Currently I am having a problem because one class from application logic uses a static…

user2560860
- 13
- 2
0
votes
2 answers
How solve circular reference in Caliburn.Micro
I am working with Caliburn.Micro v2.0.1 on a Windows 8.1 Unversal (WinRT) project.
I followed the Caliburn.Micro Working with WinRT example.
My code looks as follows:
App.xaml.cs
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
…

Barnstokkr
- 2,904
- 1
- 19
- 34
0
votes
2 answers
How do I solve this circular dependency issue in C#?
I have a big project and I'm using the Model pattern for my objects, so I have something like this:
public class Test
{
public int TestID { get; set; }
public int StudentID { get; set; }
public Student Student { get; set; }
public…

Danicco
- 1,573
- 2
- 23
- 49
0
votes
0 answers
How to resolve circular dependencies?
My question is about a compiler for any language that supports circular function dependencies, it doesn't matter which language. The language is compiled to machine code/byte code, the compiler doesn't piggyback on a compiler for some other…

Kalinovcic
- 492
- 3
- 11
0
votes
2 answers
C2061 - Circular dependency
How to avoid circular dependency on these code:
Mechanic.cpp:
#include "stdafx.h"
#include "Characters.h"
#include "Monsters.h"
using namespace characters;
using namespace monsters;
using namespace std;
void character::character_atack(character…

Kulis
- 988
- 3
- 11
- 25
0
votes
1 answer
Circular Dependency due to usage of HATEOAS in REST
I'm designing my REST application architecture using Domain Driven Design and Adapter patter (there are interfaces, and many implementations in the aggregate root). It's all fine as long as don't add HATEOAS to the puzzle. In HATEOAS my value…

Bartek Andrzejczak
- 1,292
- 2
- 14
- 27