On 18 Jan 2006, at 04:58, [EMAIL PROTECTED] wrote:
hi,
im not sure whether this is a problem or im not seeing it, but does
laszlo
release memory when a browser window is closed or do i need to call
the
destroy method on all windows? if i need to call the destroy
method, is
there a way i can call it on the canvas tag?
Closing the window releases all the memory. This is a contract of
the browser and the flash player. (If that is not working, it is a
bug of the browser or player and beyond your control. But note,
using a process monitor or task manager to asses this can only be an
approximation because the browser may internally manage pools of
memory and not release unused memory immediately to the operating
system.)
The purpose of destroy is to untangle a view from the web of events
so that it can be garbage-collected. You use destroy if you have a
continuously running application that creates views on the fly that
become obsolete. Destroy does not directly reclaim memory, it simply
disconnects the view so that it can eventually be garbage-collected
by the runtime (the Flash player).
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user