Error PInvokeStackImbalance in runtime #415
-
Hi, I have a .NET project in which uses a dll created from a jar file using IkvmReference. The project builds successfully and the corresponding dll is created. However, during runtime I'm getting the error:
Any thoughts? I use: The jar that I use is grobid-core version 0.7.1 https://github.com/kermitt2/grobid/tree/0.7.1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Can you try downgrading a few versions? I hit this recently as well, and haven't had a chance to do much about it. |
Beta Was this translation helpful? Give feedback.
My guess is this is an issue only for x86 due to incorrect calling convention.
ikvm/src/IKVM.Runtime/JNI/JNIVM.cs
Line 49 in 3024f42
If so, the solution is to adorn the delegate with
UnmanagedFunctionPointerAttribute
.