[ooo-build] Bootstrap.bootstrap() second call
Jānis Upītis
janis.upitis at gmail.com
Tue Jul 27 04:47:52 PDT 2010
I have OOo 3.2 on Ubuntu 10.04 LTS.
It's official build.
Problem occurs, if bootrap() is called two times during execution of code. I
can reproduce issue on my computer, if I'm modifying your code (last two
lines):
using ( SpreadsheetSample aSample = new SpreadsheetSample( args ) )
{
aSample.doSampleFunctions();
}
Console.WriteLine( "\nSamples done." );
unoidl.com.sun.star.uno.XComponentContext context =
uno.util.Bootstrap.bootstrap();
Console.WriteLine(context.ToString());
2010/7/27 Petr Mladek <pmladek at suse.cz>
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/ooo-build/attachments/20100727/589bba21/attachment.html>
More information about the ooo-build
mailing list