[Mapguide-trac] [mapguide-trac] #2319: Event handler cleanup
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Jul 18 21:45:49 PDT 2013
#2319: Event handler cleanup
-----------------------+----------------------------------------------------
Reporter: jng | Owner: jng
Type: task | Status: new
Priority: low | Milestone: Maestro-5.1
Component: Maestro | Version:
Severity: trivial | Keywords:
External_id: |
-----------------------+----------------------------------------------------
In the Maestro codebase there's lots of event subscription with manual
cleanup, and there's probably leaks scattered about because we haven't
properly unsubscribed from some events.
Using weak event handlers with auto-deregistration is much simpler to
manage:
* http://stackoverflow.com/questions/1089309/weak-events-in-net
*
http://diditwith.net/2007/03/23/SolvingTheProblemWithEventsWeakEventHandlers.aspx
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2319>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list