Apache OpenOffice (AOO) Bugzilla – Issue 94694
Dispatch objects don't call disposing although they implement XEventListener
Last modified: 2013-08-07 15:31:14 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.
cd: Accepted. The following projects must be checked: sfx2, dbacess and chart2
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.