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