Exception in DocumentLoader.cxx

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Exception in DocumentLoader.cxx

Postby LaurentFr » Wed Jul 09, 2014 9:25 pm


I'm a beginer in SDK libre office and I have got some problems
First I use this command to launch Libre office :
Code: Select all   Expand viewCollapse view
soffice.exe -accept=socket,host=localhost,port=2083;urp;Staroffice.Servicemanager
With this command I have got in LibreOffice listenning on port 2083 (I Have check it with
Code: Select all   Expand viewCollapse view
netstat -an

Then I have compile and run http://api.libreoffice.org/examples/Dev ... amples.cxx. Result is (pi ( here 3.14159 ) multiplied with 42 gives 131.94678.) There is no link with LibreOffice but :D
Then again compile and run http://api.libreoffice.org/examples/Dev ... onnect.cxx Result is (Connected successfully to the office) :D
And again with http://api.libreoffice.org/examples/Dev ... ap_cpp.cxx. Result calc is Open :D
Now with example http://api.libreoffice.org/examples/cpp/DocumentLoader/ and :(
program crashed and with debugging problem is at line 135 :
Code: Select all   Expand viewCollapse view
    /* Creates an instance of a component which supports the services specified
       by the factory. Important: using the office component context.
    Reference < XDesktop2 > xComponentLoader = Desktop::create(xComponentContext);

In class Desktop.hpp
Code: Select all   Expand viewCollapse view
        ::css::uno::Reference< ::css::frame::XDesktop2 > the_instance;
        try {
            the_instance = ::css::uno::Reference< ::css::frame::XDesktop2 >(the_context->getServiceManager()->createInstanceWithContext(::rtl::OUString( "com.sun.star.frame.Desktop" ), the_context), ::css::uno::UNO_QUERY);
        } catch (const ::css::uno::RuntimeException &) {

with error message Exception non gérée à 0x55131E60 (msci_uno.dll) dans DocumentLoader.exe : 0xC00000FD: Stack overflow (paramètres : 0x00000001, 0x003C2FFC).
If somebody can give me an idea to solve my problem.
Thanks you for yours ideas
LibreOffice 4.2.5 sdk 4.2 Windows 7
Posts: 4
Joined: Wed Jul 09, 2014 9:09 pm

Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests