-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Martin,

thanks for the reply and the explanation!

regards

Fabian




Am 05.09.2013 12:56, schrieb Martin Wittemann:
> Hey,
>> I'm currently checking my application for undisposed object and
>> memory leaks.
>> 
>> When shutting down the application I get a lot of these
>> messages:
>> 
>> 011782 Missing destruct definition for '$$user_model' in 
>> bj.canvas.FloorView[undefined]: 
>> bj.data.FunctionDefinition[274-0],bj.data.FunctionDefinition[277-0],bj...
>>
>>
>> 
Where the model property is of type 'qx.data.Array' and is defined as
>> shown here:
>> 
>> model: { init: null, check: "qx.data.Array", event:
>> "changedModel", nullable: true }
>> 
>> The model property contains a huge amount of qx objects and I
>> think it would be a good idea to dispose the array on
>> destruction.
>> 
>> So I searched the documentation and found this:
>> 
>> "For all other properties which contain complex data the
>> developer must add a dispose key with a value of true to the
>> property declaration. For example if there is no check defined or
>> the check definition points to a function."
>> 
>> (See at the bottom of the page -> 
>> http://manual.qooxdoo.org/current/pages/core/property_features.html)
>
>> 
Thanks for the pointer. Deleted the whole paragraph because it has been
outdated in total.
> 
>> But the dispose key doesn't seem to exists aynmore, cause qooxdoo
>> says:
>> 
>> Uncaught Error: The configuration key "dispose" of property
>> "model" in class "bj.canvas.FloorView" is not allowed!
>> 
>> So here are my questions:
>> 
>> Is the dispose key no longer supported or replaced by something
>> else? What is the best way to dispose a property of type
>> qx.data.Array?
> 
> I don't know when dispose has been removed or if it was only
> available in the manual but its gone. But there is no difference
> for properties than for members e.g. If you are the one creating
> the instance, you have to dispose it in the destructor. Thats
> basically it. The dereference key only remove the internal
> references which does not help much for qooxdoo objects which are
> always stored in the object registry and need to be disposed.



> 
> Regards, Martin 
> ------------------------------------------------------------------------------
>
> 
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft
> technologies and advance your career. Get an incredible 1,500+
> hours of step-by-step tutorial videos with LearnDevNow. Subscribe
> today and save! 
> http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
>
> 
_______________________________________________
> qooxdoo-devel mailing list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 


- -- 
Fabian Hickert <[email protected]> (System Engineer)
* GONICUS GmbH * Moehnestrasse 55 * D-59755 Arnsberg
* Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 242
* http://www.GONICUS.de * http://twitter.com/gonicus

*Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg
*Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder
*Vorsitzender des Beirats: Juergen Michels
*Amtsgericht Arnsberg * HRB 1968
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIpiOIACgkQMuPovRipbI9+vQCeKut7ek7b7jVUU5796ypLjXap
sMUAoJ1E9xpZ+LVCGeyuW/2C4cMBk4+7
=T6Qh
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to