[Gambas-user] Circular references

Daniel Fuchs daniel at ...2544...
Mon Feb 7 11:40:57 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


----- original Nachricht --------

Betreff: Re: [Gambas-user] Circular references
Gesendet: Fr, 04. Feb 2011
Von: Jussi Lahtinen<jussi.lahtinen at ...626...>

> Can you give me "celesta.ae0" file for test?
> 
> Jussi
> 
> 
> On Fri, Feb 4, 2011 at 14:46, Daniel Fuchs <daniel at ...2544...> wrote:
> 
> > Hello,
> >
> > the problem is that I cannot find any circular (object) references. Have
> a
> > look at the project attached. The Gambas runtime issues a warning when
> you
> > run the program, but the class mentioned (ParamDef) does not contain any
> > references to other classes, so I can't figure out why that message
> appears.
> > It' s the same with other projects I have tried. Maybe you can throw a
> light
> > on it?
> >
> > Regards,
> >
> > Daniel
> >
> > ----- original Nachricht --------
> >
> > Betreff: Re: [Gambas-user] Circular references
> > Gesendet: Mi, 02. Feb 2011
> > Von: Benoît Minisini<gambas at ...1...>
> >
> > > >    Hello everybody,
> > > >    is there a way to turn off the messages on circular references
> > Gambas
> > > > issues on  terminating  a  program? They are very disturbing when you
> > > > write a command-line application whose output must be read by other
> > > > programs. Regards,
> > > >    Daniel
> > >
> > > This message means that there is a problem in your application. Maybe
> you
> > > should try to fix it first?
> > >
> > > --
> > > Benoît Minisini
> > >
> > >
> >
> ----------------------------------------------------------------------------
> 
> > > --
> > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> > > Finally, a world-class log management solution at an even better
> > price-free!
> > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> > > February 28th, so secure your free ArcSight Logger TODAY!
> > > http://p.sf.net/sfu/arcsight-sfd2d
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> > --- original Nachricht Ende ----
> >
> >
> >
> >
> ----------------------------------------------------------------------------
> --
> > The modern datacenter depends on network connectivity to access resources
> > and provide services. The best practices for maximizing a physical
> server's
> > connectivity to a physical network are well understood - see how these
> > rules translate into the virtual world?
> > http://p.sf.net/sfu/oracle-sfdevnlfb
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> ----------------------------------------------------------------------------
> --
> The modern datacenter depends on network connectivity to access resources
> and provide services. The best practices for maximizing a physical server's
> connectivity to a physical network are well understood - see how these
> rules translate into the virtual world? 
> http://p.sf.net/sfu/oracle-sfdevnlfb
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

--- original Nachricht Ende ----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stan-ae0-0.1.26.tar.gz
Type: application/x-gzip
Size: 39775 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20110207/ea0d8796/attachment.bin>


More information about the User mailing list