Re: [udk-dev] My first Calc addin: problem with exception handling
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]
Re: [udk-dev] Re: My first Calc addin: problem with exception handling
On 08/25/08 10:05, Andrea wrote: Can I ask an other question: I cannot set breakpoints in my library. (gdb) attach 3459 Attaching to program: /home/andrea/projects/openoffice/maths/libASIMaths.so, process 3459 0x00110416 in __do_global_dtors_aux () (gdb) break ASIMaths_impl.cpp:73 Breakpoint 1 at 0x110ee8: file ASIMaths_impl.cpp, line 73. (gdb) c Continuing. But then it never stops. I compile and link with -g. Should I do anything more? Sorry, no idea. Maybe gdb thinks that line 73 of your file contains no code (like only the void f() start of a function definition). -Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] UNO python and openoffice. ManualHowto
Hello again, I am opening a file(document), changing it and want to write it to combinedfile.odt.(document2) I only saw reference to insertDocumentFromURL(). Is there a function that inserts the document into current document? What we be the code for inserting document to document2 ### document = desktop.loadComponentFromURL(file:///home/lucas/myfile.odt ,_blank, 0, ()) #Change things document2 = desktop.loadComponentFromURL(private:factory/swriter, _blank, 0, ()) cursor = document2.Text.createTextCursor() cursor.gotoEnd(False) cursor.BreakType = PAGE_BEFORE cursor.insertDocumentxxx(???document??) cursor.append??? document = desktop.loadComponentFromURL(file:///home/lucas/myfile.odt ,_blank, 0, ()) #Do more Change things cursor.append? cursor.insert??? What would be that last function? Thanks, Lucas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]