Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-16 Thread anwen
Hi Stephan Thank you for your effort to review my posts and give suggestions. Please see my answers below. Stephan Bergmann-2 wrote > > So the situation is as follows: When your notifyTermination() listener > is called (which apparently happens with the SolarMutex being locked), > you need t

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-15 Thread anwen
especially XVolatileResult related. Thanks, Wendi Michael Stahl-2 wrote > > On 14/08/12 16:30, Stephan Bergmann wrote: >> On 08/14/2012 03:20 PM, anwen wrote: >>> In addition, from the link >>> (http://www.openoffice.org/api/docs/common/ref/com/sun/star/sdb/Office

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-14 Thread anwen
Stephan Bergmann-2 wrote > > On 08/14/2012 12:35 AM, anwen wrote: >> I implemented the above code with c++ . However, it did not work. >> Anything >> wrong with the following code: >> m_xCC is a given Reference >> >> Reference >> xBrd(m_xCC

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-13 Thread anwen
Michael Stahl-2 wrote > > On 09/08/12 15:56, anwen wrote: >> I am also interested in XDocumentEventBroadcaster/XDocumentEventListener. >> I >> am wondering if you could correct my following code which tries to >> register >> a XDocumentListener with the

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-10 Thread anwen
Stephan Bergmann-2 wrote > > > I think you should execute your shutdown activies on notifyTermination, > not queryTermination. The latter can be veto'ed by some other listener, > in which case Desktop would cancel the termination and continue running > (and notify you with queryTermination e

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-09 Thread anwen
benefit from my experience. Best, Wendi Michael Stahl-2 wrote > > On 09/08/12 15:56, anwen wrote: >> I am also interested in XDocumentEventBroadcaster/XDocumentEventListener. >> I >> am wondering if you could correct my following code which tries to >> register &

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-09 Thread anwen
anwen wrote > > > BTW, I am not sure how to initialize a XDocumentEventBroadcaster which you > mentioned previously in a Calc Extension. I tried this method: > Reference > xCalc(m_xCC->getServiceManager()->createInstanceWithContext(OUString(RTL

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-09 Thread anwen
> > On 08/08/2012 08:34 PM, anwen wrote: >> With the TerminateListener, I successfully get the desktop termination >> event >> by queryTermination() function. Although you told me that I could veto >> this >> termination signal by throwing TerminationVetoExceptio

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-08 Thread anwen
t;getServiceManager()->createInstanceWithContext(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sheet.SpreadsheetDocument")), m_xCC), UNO_QUERY); But it did not work. Thank you for any suggestion. Best, Wendi Eike Rathke-2 wrote > > Hi anwen, > > On Wednesday,

Issues involving dirty cell, recalculation, and xvolatileresult in Libreoffice Calc

2012-08-01 Thread anwen
Hi All, Recently, I am working on a Calc extension which is for dynamically showing streaming financial data. I observed a conflict involving dirty cell, recalculation, and xvolatilresult in Calc. From my view, it will be a potential error or at least affect the performance of Calc if many changes

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-08-01 Thread anwen
> > Hi anwen, > > On Tuesday, 2012-07-31 08:30:30 -0700, anwen wrote: > >> Eike, I agree with you that the listeners are destroyed during document >> close. I observed it in my log file. However, the worker thread is >> running >> asynchronously if not calling th

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-07-31 Thread anwen
, and quit itself gracefully. So in the first post, I asked if there is a signal which announces that the document is closed. Please correct me if there is something wrong with my thought. Best, Wendi Eike Rathke-2 wrote > > Hi anwen, > > On Friday, 2012-07-27 08:43:25 -0700, anwen

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-07-31 Thread anwen
let me know. BTW, in my previous post, you can see part of the analyzed result. Thanks, Wendi Eike Rathke-2 wrote > > Hi anwen, > > On Friday, 2012-07-27 08:43:25 -0700, anwen wrote: > >> The deadlock scenario is that the spreadsheet called the functions many >

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-07-31 Thread anwen
ephan Bergmann-2 wrote > > On 07/27/2012 05:43 PM, anwen wrote: >> After doing some research, I suspect that the deadlock is because of >> SolarMutex. The main thread starts termination process, acquires >> SolarMutex, >> and tries to close the second thread. But

Re: Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-07-31 Thread anwen
-- View this message in context: http://nabble.documentfoundation.org/Solarmutex-Deadlock-when-Closing-Calc-which-contains-functions-with-XVolatileResult-return-values-tp3998056p3998621.html Sent from the Dev mailing list archive at Nabble.com. ___ L

Re: Base hangs when trying to close it

2012-07-27 Thread anwen
I am wondering if it is possible to release SolarMutex when I develop an extension for LibreOffice. I have a similar problem when I developing a Calc extension. Is there another method since this patch is reverted from release 3.6.0? Thank you. Michael Meeks-2 wrote > > On Mon, 2012-03-05 at 12

Solarmutex Deadlock when Closing Calc which contains functions with XVolatileResult return values

2012-07-27 Thread anwen
Recently, I am working on developing a Calc extension for showing dynamic streaming data, such as Bloomberg and Reuters real time data. The extension is written in C++ for Windows OS and contains add-in functions for retrieving dynamic financial data. Based on the OpenOffice/LibreOffice developer's

Re: Regular Windows debug builds

2012-07-12 Thread anwen
Thank Jesús Corrius for your great effort of building and publishing the debug build. I do appreciate it. I downloaded the 3-5-3 version and would like to use it for debugging a crash caused by a spreadsheet extension. However, it requires symbol files (.pdb) to assist winDBG. I tried to build the