[Gambas-user] Circular references

Benoît Minisini gambas at ...1...
Mon Feb 7 17:50:56 CET 2011


> Hello everybody,
> 
> Sorry, I've added the wrong version. Here's the correct one. (The name has
> changed, but never mind.) It is a command-line tool that is part of a
> larger project, namely an editor for data related to additive sound
> synthesis with the Aeolus organ emulator (see
> www.kokkinizita.net/linuxaudio/aeolus), but this is not important now. The
> program, when launched without command-line parameters, just prints a help
> text and quits. But I get the message:
> 
> WARNING: circular references detected
> ParamDef (19)
> 
> There are no references to objects of other classes in the ParamDef class.
> The ParamDef object is a pure data structure made up of primitive
> datatypes only. The static part of the class uses the object and refers to
> the static Options class, but there is no reference back to ParamDef in
> the code of the Options class. So I don't understand why I get this
> message.
> 
> I use Gambas 2.8, and I have this problem with nearly all of my projects.
> I'm not quite sure whether circular references between static classes are
> a problem and would justify a warning, but in this case there are not even
> such static circular references.
> 
> In any case, the messages should be suppressed outside the IDE. My
> suggestion would be to suppress them by default and add a command-line
> option to the Gambas runtime that makes it show them. The IDE could then
> launch gbx2 with this option, and you would have the messages all right
> for debugging but not when running an executable already installed on your
> filesystem; they aren't of any use in this case either, for you can't do
> anything about it once the executable is installed.
> 
> Regards, Daniel
> 

I won't suppress these messages, because they mean that there is a bug in the 
program, or a bug in Gambas. They just don't prevent the program from running.

I just need to be able to reproduce the bug to fix it. So can I run the 
project you send without needing extra files?

-- 
Benoît Minisini




More information about the User mailing list