<div dir="ltr">Hello all<div><br></div><div>I tried creating a very simple singleton UNO component which just gets/sets a boolean value. The code is hosted at <a href="https://github.com/niocs/SingletonComponent">https://github.com/niocs/SingletonComponent</a> . This was created based on <a href="http://opengrok.libreoffice.org/xref/core/framework/source/jobs/jobexecutor.cxx#66">http://opengrok.libreoffice.org/xref/core/framework/source/jobs/jobexecutor.cxx#66</a> . 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.</div><div><br></div><div>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". </div><div><br></div><div>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 ?</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Regards,</div><div>Dennis</div></div>