Issue 94694

Summary: Dispatch objects don't call disposing although they implement XEventListener
Product: General Reporter: carsten.driesner
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, Mathias_Bauer
Version: OOo 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description carsten.driesner 2008-10-06 16:06:21 UTC
OpenOffice.org dispatch objects don't call disposing although they implement the
com.sun.star.lang.XEventListener interface. There is a severe problem for
external developers who don't know when a dispatch object gets invalid. There
are only workarounds possible, e.g. using a FrameActionListener and react on
COMPONENT_DETACHED, to invalidate dispatch objects. A correct framework solution
would use disposing to notify listeners.
Comment 1 carsten.driesner 2008-10-06 16:09:45 UTC
cd: Accepted. The following projects must be checked: sfx2, dbacess and chart2 
Comment 2 Mathias_Bauer 2008-11-18 16:22:50 UTC
All StatusEventListeners must be removed from their Dispatch objects when the
StatusEventListener's environmenal component is going to be destroyed, e.g. when
a frame "owns" the listener and is closed or when a component "owns" it and the
frame is reused for another component.