[ooo-build] Bootstrap.bootstrap() second call

Petr Mladek pmladek at suse.cz
Tue Jul 27 03:25:12 PDT 2010


Hi Jānis,

Jānis Upītis píše v Út 27. 07. 2010 v 11:28 +0300:
> Hi,
> 
> I'm trying to use Open Office from my C#/Mono application. I can get
> XComponentContext, using uno.util.Bootstrap.bootstrap(), when calling
> it
> first time, but application crashes, if I'm trying to do it second
> time
> (gots SIGSEGV somewhere in native code). Is there any problem in my
> code. Open Office API documentation doesn't contain any clue about
> need
> of any preparation for second call (for example, release of some
> resources). Of course, it doesn't make sens to call bootstrap() two
> times in row, but it can be necessary, if i want interact with Open
> Office in different parts of my application, but I guess SIGSEGV is
> not
> appropriate result anyway.

What OOo version are you using?
Is it your own build or an official build?
Is the build based on ooo-build or on the pure upstream sources?

The attached example works for me with the openSUSE OOo-3.2.1 build
based on ooo-build-3.2.1.4.tar.gz. I just do:

    tar -xjf ooo-mono-test-3.x.tar.bz2
    cd ooo-mono-test-3.x
    make

Unfortunately, I do not have experiences with writing mono stuff for
OOo. I am not sure what is the problem on your side. Anyway, you could
hopefully take inspiration from the sample.

Hmm, the sample does not work with the last build based on ooo-build
master; though, it is in 3.3-alpha state, so bugs are expected.



-- 
Best Regards,

Petr Mladek
software developer
---------------------------------------------------------------------  
SUSE LINUX, s. r. o.                        e-mail: pmladek at suse.cz
Lihovarská 1060/12                          tel: +420 284 028 952
190 00 Prague 9                             fax: +420 284 028 951
Czech Republic                              http://www.suse.cz/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ooo-mono-test-3.x.tar.bz2
Type: application/x-bzip-compressed-tar
Size: 13541 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/ooo-build/attachments/20100727/597f3603/attachment-0001.bin>


More information about the ooo-build mailing list