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

Hello again,

while stepping through the code I found a 'dereference' key for the
properties which seems to do the trick.

Is this the way to dispose properties containing qx objects?


Am 04.09.2013 10:43, schrieb Fabian Hickert:
> Hello list,
> 
> 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)
>
>  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?
> 
> regards
> 
> Fabian
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
>
> 
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=58040911&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/

iEYEARECAAYFAlInBZcACgkQMuPovRipbI/N+wCgk2UsESPke/BIkgW26e3dXl4L
VJMAnjnsTpwXNdZYhTFO1EGkjFjoegUt
=o59I
-----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=58040911&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to