Hello world,
I copied the C++ DocumentLoader example, but I get an segmentation fault.
By "I copied C++ DocumentLoader example" you presumably mean that you've built
and run the example outside the environment set by LibO SDK (i.e. by
'setsdkenv_$your_os') ?
Correct me if I'm wrong
The segfault is caused by invoking
`cppu::defaultBootstrap_InitialComponentContext()`
Umm, so the example code could be made a bit more robust here and fail early
if the bootstrap failed (instead of assuming that bootstrap succeeds at all
times). Nevertheless it doesn't explain why bootstrapping LibO didn't work for
you.
Anyway:
command line was: ./generator -env:URE_MORE_TYPES=file://"./offapi.rdb"
"./test.odt"
"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"
Libreoffice was started with: soffice
"-accept=socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"
Try using absolute path to the file DocumentLoader is expected to open (i.e.
'/full/path/to/test.odt' instead of './test.odt')
If that doesn't help, the next step would be adding some debug code into into
DocumentLoader.cxx code, for ex. wrap defaultBootstrap_InitialComponentContext
in some try-catch block and see what exception(s) are thrown ...
HTH
--
Katarina Behrens
Senior Software-Entwicklerin FLOSS
–––
CIB software GmbH
Geschäftsstelle Hamburg
Flachsland 10
22083 Hamburg
–––
T +49 (40) / 28 48 42 -235
F +49 (40) / 28 48 42 -100
Katarina.Behrens@cib.de
www.cib.de
–––
Sitz: München
Registergericht München, HRB 123286
Geschäftsführer: Dipl.-Ing. Ulrich Brandner
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.