Hi again,

THAT was a long lunch break... ;)
But here it is: http://bugzilla.qooxdoo.org/show_bug.cgi?id=3867
I hope the description is sufficient.

/Peter


On 2010-07-15 15:42 Peter Schneider wrote:
> Hello Alex,
> 
> the sample code is quite easy:
> 
> Just add this code to a "standard quick start application"[1] at the according
> place ('main' method)...
> <code>
>   // [...]
>   /*
>   ------------------------------------------
>     Below is your actual application code...
>   ------------------------------------------
>   */
>   var label     = this.tr("Name");
>   var textfield = new qx.ui.form.TextField;
>   var form      = new qx.ui.form.Form;
> 
>   // Here we go...
>   var doc = this.getRoot();
> 
>   form.add(textfield, label);
>   var renderer = new qx.ui.form.renderer.Single(form);
>   doc.add(renderer, {left: 100, top: 50});
> 
>   var button = new qx.ui.form.Button("shutdown...");
>   doc.add(button, {left: 100, top: 100});
> 
>   // Adding "once" is definitely enough here...
>   button.addListenerOnce("execute", function () {
>     qx.core.ObjectRegistry.shutdown();
>   }, this);
>   // [...]
> </code>
> and compile it with 'generate disposerDebug'[2].
> 
> Or use the attached example, which is a little different 'cause I wanted to
> explicitly use the destructor there and therefore I made all those used 
> objects
> members. But this makes no difference in the result:
> Both versions create those
>   "003195 Missing destruct definition for '$$user_buddy' in
>   qx.ui.basic.Label[undefined]: qx.ui.form.TextField[41]"
> warnings in Firebug...
> 
> I hope you can reproduce it with this.
> I will create a bug entry after lunch...unless you found a quick solution
> and post it here before ;)
> 
> Cheers,
>   Peter
> 
> -----
> [1] 'tool/bin/create-application.py --name buddy_check'
>     http://qooxdoo.org/documentation/1.1#getting_started
> [2] you have to add that job to the config.json, too
> 
> 
> On  Alexander Steitz wrote:
>> Hi Peter,
>>
>> Am 29.06.2010 16:10, schrieb Peter Schneider:
>>> during investigations on another issue[1] I stumbled over a disposal issue 
>>> that
>>> I can not resolve by myself.
>>>
>>> Both form renderer (qx.ui.form.renderer.Single and Double) bind the label 
>>> and
>>> the field item together in their "addItems()" method via
>>> "label.setBuddy(item);".
>>>
>>> Whenever I call the destructor of a form (with a renderer), the warning
>>> appears.
>>> But somehow I can't find the correct place to remove that buddy.
>> Can you please post a sample code which shows this warning messages? Or 
>> you can open a bug report for it and adding these lines to the report.
>>
>>> I have managed to remove several other "Missing destruct definition!..."
>>> warnings so far, but here I am "out of my latin";)
>> "Out of my latin" ... really nice to read this direct translation :) I 
>> guess every German is smiling about this one.
>>
>>> I would like to create a bug report for this, but I don't want to make one 
>>> for
>>> each occurrence of "Missing destruct definition!..."
>> It's better to report it as single bug which describes the issue. A bug 
>> report which collects all occurences of "Missing destruct definitions 
>> ...." will soon get unmaintainable if there are e.g. 5 or more occurences 
>> listed.
>>
>> cheers,
>>    Alex

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to