bootstrap error (.Net core)

Michael Stahl mst at libreoffice.org
Mon Feb 10 10:28:20 UTC 2020


hi aimadati,

On 10.02.20 11:07, aimadati . wrote:
> Hi,
> 
> I've downloaded SDK 6.4.0.3.
> Linked all dll's in cli folder and compiled SpreadsheetDocHelper in a 
> .Net core 3.1 project.
> 
> but i'm getting an error at bootstrap
> 
> System.InvalidOperationException : Handle is not initialized.
>     at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value)
>     at uno.util.to_cli<class 
> com::sun::star::uno::XComponentContext>(Reference<com::sun::star::uno::XComponentContext>* 
> x)
>     at uno.util.Bootstrap.bootstrap()
> 
> This code was working in .Net Framework 4.x

most likley the CLIuno bridge has never been tested with .Net Core, and 
you're the first one to try.

maybe there are incompatible changes between .Net Framework and .Net 
Core, i have no idea; the backward compatibility of .Net was 
historically never as good as e.g. Java.

if you can figure out how to fix the problem, please upload patches to 
gerrit.libreoffice.org :)


More information about the LibreOffice mailing list