topleft topright

Welcome, Guest. Please login or register.
May 25, 2013, 10:52:25 PM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.

Pages: [1]
Print
Author Topic: removeAllProxies and removeAllMediators  (Read 963 times)
Kimi
Newbie
*
Posts: 4


View Profile
« on: January 15, 2009, 07:22:37 AM »

When deleting/cleaning an application i want to remove all registered proxies and mediators from the model and view. Would'nt it be great, if the model had the method removeAllProxies() and the view removeAllMediators()?
The Method iterates the proxyMap and calls the removeProxy method. The same with the view.
This would help cleaning/deleting an application module when removing it from a core application (garbage collection).
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2790



View Profile WWW
« Reply #1 on: January 15, 2009, 10:00:22 AM »

When you unload a module, as long as you aren't retaining any references to things inside that module, you don't have to completely deconstruct it to make its pieces be GC'd. Check out this article on Garbage Collection by Simon Bailey. He really crunched the MultiCore GC problem hard:

http://www.nutrixinteractive.com/blog/?p=132

-=Cliff>
Logged
Pages: [1]
Print
Jump to:  



Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC
Copyright © 2006-2008 Futurescale, Inc.