Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Hello all

I tried creating a very simple singleton UNO component which just gets/sets
a boolean value. The code is hosted at
https://github.com/niocs/SingletonComponent . This was created based on
http://opengrok.libreoffice.org/xref/core/framework/source/jobs/jobexecutor.cxx#66
. The component is packaged as an extension and unopkg was used to install
it. The oxt file is also provided in the repo for easy testing.

I tried to instantiate this singleton using macro sub named "TestSingleton"
inside the document TestSingleton.ods provided in the same repo. The vba
code is also provided in the file TestSingleton.vba for convenience. When
the macro is executed, it shows a msgbox with the string
"com.sun.star.uno.RuntimeExceptioncannot get environments".

I suppose there is something wrong with my singleton instantiation, but I
could not find any solution either by googling or by using opengrok. Could
someone please give a hint where I am wrong ?

Thanks in advance.

Regards,
Dennis

Context


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.