Hi,
Even better I think is to do 'new qx.io.request.Xhr();' in the constructor.
You can call send() multiple times.
-ilkka
On Wed, Aug 21, 2013 at 6:46 AM, Romeo Kenfack Tsakem <
[email protected]> wrote:
> Hello Hans,
>
> You should dispose all the objects your are using in your polling code,
> including the request object itself.
>
> Regards,
> Romeo
>
>
> -----Ursprüngliche Nachricht-----
> Von: Hans Juergen Gamauf [mailto:[email protected]]
> Gesendet: Mittwoch, 21. August 2013 12:56
> An: [email protected]
> Betreff: [qooxdoo-devel] Memory-Leak-Problem in WindowsXP
>
> Hello!
>
> I'm developing a Qooxdoo-Desktop-Application, which does periodically
> asking the server about the current status (a timer elapsing every second),
> the communication is done simply with a Xhr-Request (Code is below)
>
> Everything is working fine on Windows 7 or 8
>
> But on Windows XP (tested with Firefox and Chrome), the Browser uses more
> and more RAM (150 MB per hour) until no free RAM is available
>
> How can I manage this problem? Where and how do I have to free up memory?
>
> I tried out a model.dispose()
>
> Also I tried it with
> this.storeStatus = new qx.data.store.Json( url ); and
> this.storeStatus.reload();
>
> I'm currently using Qooxdoo 2.0.1, but also tried it with 3.0 - no success
>
> Thank you for your help!
>
> Regards,
>
> Hans Juergen Gamauf
>
>
> -------------------------- sample code
>
> if ( this.__statusReq == null )
> {
> var req = new qx.io.request.Xhr();
>
> this.__statusReq = req;
>
> req.setUrl( "/status/general" );
>
> req.setMethod( "PUT" );
>
>
> req.addListener( "success", function ( e )
> {
> var model = qx.data.marshal.Json.createModel(
> qx.lang.Json.parse( this.__statusReq.getResponse() ) );
> this.debug( "new update: " + model );
>
> model.dispose(); //what about this?
> }, this );
>
> }
> this.__statusReq.send();
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/Memory-Leak-Problem-in-WindowsXP-tp7584428.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
http://iki.fi/iao/
+1-408-796-9814
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel