Re: Bootstrap.bootstrap() second call
Petr Mladek <[email protected]> Tue, 27 Jul 2010 12:25:12 +0200
| Newsgroups | gmane.comp.gnome.ximian.openoffice |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected]
Lihovarská 1060/12 tel: +420 284 028 952
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
ooo-mono-test-3.x.tar.bz2
(application/x-bzip-compressed-tar, 13.2 KB) - not displayed