If you use the umkaGetAPI function to get the Umka API vtable, any call performed on it will crash the program, even calls that don't require any parameters (ex. api->umkaGetVersion()). If you opt to use the DLL option, simple calls like umkaGetVersion() will work just fine, but calls that require Umka context will crash (ex. umkaAllocData(umka, size, free)) will crash it.
I suspect it's specific of how MSVC works, or the umka pointer is not actually valid (gotten from result)
If you use the
umkaGetAPI
function to get the Umka API vtable, any call performed on it will crash the program, even calls that don't require any parameters (ex.api->umkaGetVersion()
). If you opt to use the DLL option, simple calls likeumkaGetVersion()
will work just fine, but calls that require Umka context will crash (ex.umkaAllocData(umka, size, free)
) will crash it.I suspect it's specific of how MSVC works, or the
umka
pointer is not actually valid (gotten fromresult
)Repository to reproduce this issue: https://github.com/skejeton/umka-dynimport