Questions tagged [circular-reference]

A circular reference is a series of references where the last object references the first, resulting in a closed loop.

A circular reference is a series of references where the last object references the first, resulting in a closed loop.

Circular references can appear in computer programming when one piece of code requires the result from another, but that code needs the result from the first.

Information is taken from Wikipedia, more information available there.

758 questions
0
votes
1 answer

Jackson circular reference (2.0)

I have a user -> hasMany userPermission, and am getting a circular reference when spring MVC tries to output JSON. If I set the user permissions to null, it works. If I have a user->hasmany->userpermission (and permission manyToOne user) I get a…
mikeb
  • 10,578
  • 7
  • 62
  • 120
0
votes
1 answer

C++/Cli circular inclusion

Hi everybody I have two classes that both need the other one included, I have tried to include in A.h file the class B header and in B.h file the class A header but I was getting errors due to the circular include, after some research I have found…
ThomasSquall
  • 644
  • 6
  • 21
0
votes
1 answer

What does Delphi take as Circular Reference?

So, people. I have a aparently simple question. Does Delphi consider the next example as a Circular reference? I'm reaching Out of Memory Error with a similar set of code. unit CodeA; interface uses CodeB; implementation end. - unit…
Guill
  • 350
  • 5
  • 17
0
votes
1 answer

emitmapper circular reference

emit mapper circular reference issues. I am trying to map AA to A. A has object of B, but B has object of A. This is circular reference issue. I am not sure how Emit mapper can handle this issue. public class A { public A() { list =…
Tony Bao
  • 922
  • 2
  • 12
  • 23
0
votes
1 answer

Json circular reference and 'Children could not be evaluated' on Linq Include

The following JsonResult returns: A circular reference was detected while serializing an object of type 'System.Data.Entity.DynamicProxies.IntegerList_76C57D0878505062AEA67E9EB9F708830FA20FDE4F13A53543EC2E6ED84C1A2C' and according to the…
user1405195
  • 1,667
  • 4
  • 22
  • 35
0
votes
0 answers

How to avoid circular reference in Qlikview

Specific to this data structure: I cannot link LOL_Connection to LOL_User — renaming Connection.USERID AS %USERID — otherwise I get a circular reference exception. What possible workarounds? I wish I can get both connections and bids along with…
neurino
  • 11,500
  • 2
  • 40
  • 63
0
votes
2 answers

ContentHandler issues (circular reference) in Orchard

crosspost: https://orchard.codeplex.com/discussions/459007 First question I have is what would be the repercussions of having 2 PartHandlers for the same Part in 2 different modules? I got into this predicament because I have to run a method once a…
AnimaSola
  • 7,146
  • 14
  • 43
  • 62
0
votes
1 answer

Declare default parameter circular reference without pointers?

Is there any way to declare these classes in a header file without indirection? // Forwards declaration of B class B; class A { public: // Default parameter referring to B. May return its parameter const B& func(const B& b =…
AshleysBrain
  • 22,335
  • 15
  • 88
  • 124
0
votes
1 answer

perl cyclic reference. Is this what is happening

I am trying to write a daemon with perl. Now this daemon has the following code sub b { my $data; if (some condition) { $data->{"endsmeet"} = 1; } else { $data->{"endsmeet"} = 2; } my $newData = a($data); } sub…
0
votes
1 answer

How to bind a JQuery element to an AngularJS model?

I have an AngularJS model which should dynamically bind HTML elements. Now whenever I try to set the value of the model to a JQuery object I get an error message: TypeError: Converting circular structure to JSON at Object.stringify (native) Here is…
Bastian
  • 4,638
  • 6
  • 36
  • 55
0
votes
1 answer

Calculation order when iterative calculation (circular reference) is enabled

I have set automatic as workbook calculation mode, Enable iterative calculation for my Excel, 1 as Maximum Iterations, and 0.001 as Maximum Change. This setting permits thus circular reference in my worksheet. So I put =D4+1 in D2, and =D2+1 in D4.…
SoftTimur
  • 5,630
  • 38
  • 140
  • 292
0
votes
3 answers

Breezejs Uncaught TypeError: Converting circular structure to JSON

I have an ASP.Net MVC SPA using the Hot Towel template i.e. breezejs, knockout, entity framework (code first), durandal etc. In my EF model I have a class named "Section" that has a self referencing association. Each section belongs to a "Document"…
daveywc
  • 3,136
  • 7
  • 45
  • 58
0
votes
1 answer

vba circular reference error in function

I'm trying myself on vba with little success. I would like to achieve a simple function that sums the content of a range of cells based on the beginning of the year till today. Unfortunately, I get back a "circular reference" error when I call the…
Stratum
  • 23
  • 1
  • 5
0
votes
2 answers

mutual reference between classes in c++

many times it comes natural that instances of two or more classes, most likely ones that share a header file, will refer to one another by pointers. for example, in a graph, an edge needs to refer to its vertices and vice versa. the mutual reference…
elad
  • 349
  • 2
  • 11
0
votes
1 answer

I know this is a circular reference but its difficult for me to understand why this is bad

We have a project running where i need to do some ETL work into a new database that created was by a different company. While going through the database diagram given to me by the developers i saw that there was a circular reference on 4 of the…