I have a simple C dll (shared library, multi-threaded) which stores (as static data) some value to share between methods mytestA, mytestB , this library works fine with Excel (Excel loads once the dll and doesn’t release it) while LibreOffice reloads / releases the dll every time I call a method in dll
Public Declare Function mytestA Lib "test.dll" (ByVal a As Long) As Long
Public Declare Function mytestB Lib "test.dll" (ByVal b As Long) As Long
c = mytestA(a)
d = mytestB(b)
this means that I cannot share (via test.dll) data between mytestA, mytestB,
can you suggest a way to avoid this problem (i.e. how to instruct Basic intepreter to do not release test.dll when interpreting VBA but keep the same instance) ?