[Gambas-user] What are circular references, and how to avoid?

ron ronstk at ...239...
Tue Jan 22 17:49:37 CET 2008


On Tuesday 22 January 2008 12:42, Jaap Cramer wrote:
> 
> Hi
> 
> I discovered some. But when I search for ToolPanelContainer, FExpander, ToolPanel, Expander, I cant find them. I never use those words, so how can I have made a circular reference? And FExpander isn't even the name of a control I made...
> 
> BTW, how bad is a circular reference?
> 
> tnx in advance :-)
> Jaap


>> What is it
>> how serious is this :-)
>> and how do I avoid it?
>>
>> Jaap
>>

The explanation of Benoit is correct but I do also not understand it 100% for following reason.

I had same finding in the past, and if you search in the complete source code you 
can find those "ToolPanelContainer, FExpander, ToolPanel, Expander" in components
written in gambas. And that is exactly what I do not understand.


> Easy, you avoid it by not creating circular references. :-)
>
> A circular reference is when an object A has a variable that points at an 
> object B, and that at the same time the object B has a variable that points 
> at the object A. 

For me it was stopping to use some of those components.

Ron










More information about the User mailing list