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

Circular Reference in WPF UI Issue

I am facing a circular reference issue which I am unable to come up with a solution to. Under a solution I have 3 projects, 2 class libraries (A and B), and a main application (C). Projects A and B both contain User Controls which are of a…
0
votes
2 answers

Neo4j query nodes with regex and circular relationship freezes browser

I have a graph where nodes can either be 'resources' or 'external dependencies'. A resource (a.k.a. microservice) may have the following relationships: resource - DEPENDS_ON -> externalDependency (maxDepth of 1, one direction) resource -…
leovrf
  • 605
  • 1
  • 6
  • 17
0
votes
1 answer

converting a circular structure back and forth with the this keyword

I've been reading a ton about circular structures lately, but I still wonder: How would I stringify an object like this: var obj = { thas: obj, obj2: { thos: obj.obj2 } }; var jsonstring = JSON.stringify(obj); alert(jsonstring); back and…
Julian Avar
  • 476
  • 1
  • 5
  • 24
0
votes
0 answers

Rails version clarification

I'm currently working out of the book Agile Web Development with Rails (Fourth edition) and it instructs users to use rails version 3.2.0. I am getting an error when running "rake test" (see below) http://pastebin.com/RZeWvFYf After doing some…
0
votes
0 answers

circular reference issue between C# projects

I have a solution (C# MVC5 and multiple other class libraries). In trying to move the Identity models to my Domainclass library and all the EF related Identity stuff to my DataLayer I am running into some circular references. I've moved my…
dinotom
  • 4,990
  • 16
  • 71
  • 139
0
votes
0 answers

XSD circular imports

Is it valid to have two xsd's import each other? For example, the first one is 'MyService.xsd=48 and it looks like:
Jess
  • 140
  • 1
  • 1
  • 8
0
votes
1 answer

A circular reference was detected while serializing an object of type 'System.Globalization.CultureInfo'

I'm trying to get tables from my SQLite db into a dataset but I get an error "A circular reference was detected while serializing an object of type 'System.Globalization.CultureInfo'." From what I read online I need to use the attribute but I have…
Michael
  • 311
  • 4
  • 22
0
votes
1 answer

Why is my save(validate:false) command causing a stack level too deep?

I would love to understand recursiveness and what I've done to create a circular reference. class SomeModel # callback to calculate something only if the status_id has been changed after_save :calculate_something if: :status_id_changed? def…
james
  • 3,989
  • 8
  • 47
  • 102
0
votes
1 answer

Code Map Visual Studio not showing circular references

I have this code that has a circular reference between Service1 and Service 2 and I am using VS2015 Code Map to find circular references but they do not seem to be showing up I have selected Layout > Analyzers > Circular References Analyzer and…
kurasa
  • 5,205
  • 9
  • 38
  • 53
0
votes
1 answer

Breaking Python Circular Imports

How to break this particular circular import. I added a trivial example added at top to highlight the issue. module_tit.py import tat class Tit def tit(x): return tat.inst.tat(x) inst = Tit() if __name__=='__main__: print "tit 12…
Dan Oblinger
  • 489
  • 3
  • 15
0
votes
1 answer

How to create a calculated field that calls the same calculated field in MS ACCESS

I am creating a Access database query from an excel spreedsheet where the row "Total Capital Calls" is calculated by itself and "Current Capital Call", which is static. The data from the spreedsheet: A B …
0
votes
1 answer

Two separate applications, two databases, one IOC. How to share membership?

I am making a website and have two databases, one for my application, and another for an external application. By external, I mean it is an opensource application that I want to work with. The application is MVCForum This external application…
pookie
  • 3,796
  • 6
  • 49
  • 105
0
votes
0 answers

Saving multi-level entity

I have a 3 level entity and I am having some trouble saving it. public partial class Event { public Event() { Recurrences = new HashSet(); } public int Id { get; set; } public string Title { get; set; } …
0
votes
0 answers

handling circular references when saving(post)

I am stuck with an error i can't figure out. I have a complex model with several circular references. I have tried everything i know to handle them but i am still getting a internal server error (code 500) when i attempt saving. Below are the models…
Azuka Okeke
  • 13
  • 1
  • 4
0
votes
1 answer

How can I prevent circular http requests in a network of servers?

I have a web.py program acting as a web service, delivering responses according to the files in its directory. Now I want to build a network of servers, each running an instance of the program. Additionally, each server has a list of addresses to…
null
  • 5,207
  • 1
  • 19
  • 35