-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Kernel32.INSTANCE defaults to wrong calling convention #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The x64 native code is supposed to ignore requests for stdcall calling On Thu, Sep 29, 2016 at 8:10 PM, Geoff [email protected] wrote:
|
I just build 4.2.2 and run the Kernel32NamedPipeTest successfully on Oracle JDK 1.8.0u92 with 32bit and 64bit VM. Could it be a mix of different versions of JNA and JNA-Platform? Helpful would be if you could reproduce the problem standalone ant provide the steps. |
Sorry guys its been frantic, I'm planning on spending some time on an SSCCE here soon. |
So this was a simple misunderstanding. A copy This issue was a red-herring, sorry for wasting your time guys. |
Thank you for investigating! Its good to see this resolved. |
I saw a number of
Unrecognized calling convention: 3
exceptions while trying to useKernel32.INSTANCE
methods. In poking around at calling conventions, I simply decided to try the other one, settingLibrary.OPTION_CALLING_CONVENTION
toFunction.C_CONVENTION
in a custom instance of Kernel32, and my named pipe tests --well your named pipe tests really-- were able to create pipes and send messages without a problem.My machine is Win 10 x64, running JVM 1.8u77 x86, on JNA 4.2.2.
Any idea whats going on?
this relates to #531, UniversalMediaServer/UniversalMediaServer#714
The text was updated successfully, but these errors were encountered: