On 08/24/08 20:10, Andrea wrote:
Hi,

I've just written my first Calc addin and I managed to get my functions in Calc.

Now I have tried to throw exception (RuntimeException or 
IllegalArgumentException) but the whole
application crashes as soon as an exception is thrown.

I get

terminate called after throwing an instance of 
'com::sun::star::uno::RuntimeException'

which seems to come from g++ rather then OO.
Even an exception thrown inside a try{} catch(...){} crashes everything.

I have read that one should use the same compiler used to compile OO.
Is it (still) true? Is this my problem? What about dependent libraries?
I am using Fedora 9, gcc 4.3.0, OO openoffice.org-core-2.4.1-17.4.fc9-i386.
How do I find which compiler was used?

A GCC 4 should be fine. For C++ exception handling to work reliably with GCC, the executable and all dynamic libraries need to use the same definitions of RTTI symbols (symbols starting with _ZTI and _ZTS) for exception types. What is the output of "nm -d" on your library? Did you build your library with the OOo SDK?

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to