Hi,
Today I tried my extension with LO5 64bit on Win7 64bit.
It crashes after using these lines of code (python):
ctx = uno.getComponentContext()
smgr = ctx.ServiceManager
desktop = smgr.createInstanceWithContext( "com.sun.star.frame.Desktop",ctx)
doc = desktop.getCurrentComponent()
Maybe it doesn't crash immediately but if I try to use "doc", it will.
It also crashes when I try to debug the extension. I use remote control
with eclipse and pydev. Usually I'm able to
see and inspect my variables, but when I inspect "doc", LO crashes as well.
I also tried LO 32bit and this specific problem doesn't appear -
although there are others.
The exact code, where my extension fails, is here:
lines 255 - 267
https://github.com/XRoemer/Organon/blob/master/source/py/menu_bar.py
Can anyone comment on this? It's quite fundamental for any extension, I
guess.
Regards,
Xaver
PS: I already asked this question on the user mailing list, but I was told to ask here again.
Context
- Extension: Crash of LO5 64bit after using desktop.getCurrentComponent() · X Roemer
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.