Patrick Bernard wrote: > Hello > > > When OpenOffice.org starts, my extension registers an object with the service > com.sun.star.frame.GlobalEventBroadcaster using the addEventListener function > of the com::sun::star::document::XEventBroadcaster interface. When I quit > OpenOffice.org, the registered object isn't destroyed. Is it normal ?
"Normal" is that your instance will live until references to it have been removed. There could be other references elsewhere that you didn't mention. In case your object is implemented in Java, it's possible that you have to wait until the garbage collection kicks in. I don't know (I'm no Java expert) if this probably never happens in case the VM shuts down before the regular garbage collection has been executed. > Moreover, the service com.sun.star.frame.GlobalEventBroadcaster is > unpublished > and the interface com::sun::star::document::XEventBroadcaster is deprecated. > Is there a service I could use instead that offers the same functionality and > that is more reliable ? If not, how can I emulate it ? The interface was set to "deprecated" because we wanted to fix a name clash. Unfortunately that never happened. So it's time to think about that and either revert that state of that interface or finally fix the problem. I have to investigate that before I can answer you question. Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[email protected]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
