Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values
anwenfish at hotmail.com
Mon Aug 13 15:35:33 PDT 2012
Michael Stahl-2 wrote
> On 09/08/12 15:56, anwen wrote:
>> I am also interested in XDocumentEventBroadcaster/XDocumentEventListener.
>> am wondering if you could correct my following code which tries to
>> a XDocumentListener with the XDocumentEventBroadcaster in a Calc
>> I did some research on this topic. Most of examples initialize a
>> EventBroadcaster following a bootstrap() method which could not be used
>> Calc Extension.
> i don't think documents implement XDocumentEventBroadcaster, but there
> is a GlobalEventBroadcaster service that you can get from the service
> Object oGEB = m_xMSF.createInstance(
> m_xGEB = UnoRuntime.queryInterface(XDocumentEventBroadcaster.class,
> iirc the DocumentEvent that your listener gets then contains something
> that identifies the document that the event is for.
I implemented the above code with c++ . However, it did not work. Anything
wrong with the following code:
m_xCC is a given Reference<XComponentContext>
m_xCC), UNO_QUERY); //xBrd is still empty, not sure why?
Reference< XEventListener > xDocListener(
static_cast<XEventListener*>(new CalcListener()), UNO_QUERY);
View this message in context: http://nabble.documentfoundation.org/Solarmutex-Deadlock-when-Closing-Calc-which-contains-functions-with-XVolatileResult-return-values-tp3998056p4001090.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice