[Gambas-devel] BUG on Object.Parent(o)

Fabien Bodard gambasfr at ...4...
Fri Jan 6 13:26:31 CET 2006


Le Jeudi 5 anvier 2006 23:48, Benoit Minisini a écrit :
> On Thursday 05 January 2006 20:30, Fabien Bodard wrote:
> > Hi Benoit ...
> >
> > This is a small exemple that raise a crash...
> >
> >
> > Regards,
> > Fabien
>
> Same problem than you sent me in french. But now I understand better what
> you wanted to do.
En fait je problème est que dans mon système chaque objet a une fonction  le 
dessinant...
Pour la Classe ReportLabel qui sert a la fois de label et de champ suivant les 
donnée demandé dans la propriété command, l'évènement doit être appelé par le 
label lui même en passant les champ appelé ou les information demandé. Dans 
la version 1.9.22 tout allais bien ... mais avec la 1.9.23 ça plante... En 
effet mon exemple envoyé était mal construit, mais dans gb.report, l'objet 
Report est créé et attaché a son parent avant la création de tout autre 
composant donc ce n'est pas le soucis...


> The problem is that during the _new method, the created object is not yet
> attached to its parent, and so Object.Parent() returns NULL!
>
> But I really don't see the need of what you want to do...
Ben si tu a une autre idée je veut bien l'entendre...


Amicalement, 
Fabien Bodard

PS:

Y'a quand même un bug !





More information about the Devel mailing list