[ooo-build] Bootstrap.bootstrap() second call
Noel Power
nopower at novell.com
Thu Jul 29 01:00:36 PDT 2010
Hi Janis,
This does seem to sound suspiciously like a problem I saw previously
where constructing c++ side of the bridge twice caused a problem
( specifically loading the same assembly second time causes what looks
like a funny return status causing the bridge to return a null pointer )
I will be looking at some mono related stuff soon, if I can confirm the
problem I will let you know the bugzilla number for you to observe
thanks,
Noel
On Tue, 2010-07-27 at 14:47 +0300, Jānis Upītis wrote:
> 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/
>
> _______________________________________________
> ooo-build mailing list
> ooo-build at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ooo-build
More information about the ooo-build
mailing list