Issue 94694 - Dispatch objects don't call disposing although they implement XEventListener
Summary: Dispatch objects don't call disposing although they implement XEventListener
Status: ACCEPTED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 3.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-06 16:06 UTC by carsten.driesner
Modified: 2013-08-07 15:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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.