{"action":"created","issue":{"url":"https://api.github.com/repos/java-native-access/jna/issues/710","repository_url":"https://api.github.com/repos/java-native-access/jna","labels_url":"https://api.github.com/repos/java-native-access/jna/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/710/comments","events_url":"https://api.github.com/repos/java-native-access/jna/issues/710/events","html_url":"https://github.com/java-native-access/jna/issues/710","id":180193037,"number":710,"title":"Kernel32.INSTANCE defaults to wrong calling convention","user":{"login":"Groostav","id":1680611,"avatar_url":"https://avatars.githubusercontent.com/u/1680611?v=3","gravatar_id":"","url":"https://api.github.com/users/Groostav","html_url":"https://github.com/Groostav","followers_url":"https://api.github.com/users/Groostav/followers","following_url":"https://api.github.com/users/Groostav/following{/other_user}","gists_url":"https://api.github.com/users/Groostav/gists{/gist_id}","starred_url":"https://api.github.com/users/Groostav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Groostav/subscriptions","organizations_url":"https://api.github.com/users/Groostav/orgs","repos_url":"https://api.github.com/users/Groostav/repos","events_url":"https://api.github.com/users/Groostav/events{/privacy}","received_events_url":"https://api.github.com/users/Groostav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T00:10:44Z","updated_at":"2016-09-30T12:57:39Z","closed_at":null,"body":"I saw a number of `Unrecognized calling convention: 3` exceptions while trying to use `Kernel32.INSTANCE` methods. In poking around at calling conventions, I simply decided to try _the other one_, setting `Library.OPTION_CALLING_CONVENTION` to `Function.C_CONVENTION` in a custom instance of Kernel32, and my named pipe tests --[well your named pipe tests really](https://github.com/java-native-access/jna/blob/master/contrib/platform/test/com/sun/jna/platform/win32/Kernel32NamedPipeTest.java)-- were able to create pipes and send messages without a problem.\r\n\r\nMy machine is Win 10 x64, running JVM 1.8u77 x86, on JNA 4.2.2.\r\n\r\nAny idea whats going on?\r\n\r\n--\r\n\r\nthis relates to #531, UniversalMediaServer/UniversalMediaServer#714"},"comment":{"url":"https://api.github.com/repos/java-native-access/jna/issues/comments/250737741","html_url":"https://github.com/java-native-access/jna/issues/710#issuecomment-250737741","issue_url":"https://api.github.com/repos/java-native-access/jna/issues/710","id":250737741,"user":{"login":"twall","id":756909,"avatar_url":"https://avatars.githubusercontent.com/u/756909?v=3","gravatar_id":"","url":"https://api.github.com/users/twall","html_url":"https://github.com/twall","followers_url":"https://api.github.com/users/twall/followers","following_url":"https://api.github.com/users/twall/following{/other_user}","gists_url":"https://api.github.com/users/twall/gists{/gist_id}","starred_url":"https://api.github.com/users/twall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twall/subscriptions","organizations_url":"https://api.github.com/users/twall/orgs","repos_url":"https://api.github.com/users/twall/repos","events_url":"https://api.github.com/users/twall/events{/privacy}","received_events_url":"https://api.github.com/users/twall/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T12:57:39Z","updated_at":"2016-09-30T12:57:39Z","body":"The x64 native code is supposed to ignore requests for stdcall calling\nconvention, perhaps something changed recently so that is no longer the\ncase?\n\nOn Thu, Sep 29, 2016 at 8:10 PM, Geoff <notifications@github.com> wrote:\n\n> I saw a number of Unrecognized calling convention: 3 exceptions while to\n> use Kernel32.INSTANCE methods. In poking around at calling conventions, I\n> simply decided to try *the other one*, and my code, --well your code\n> really\n> <https://github.com/java-native-access/jna/blob/master/contrib/platform/test/com/sun/jna/platform/win32/Kernel32NamedPipeTest.java>--\n> was able to create pipes and send messages without a problem.\n>\n> My machine is Win 10 x64, running JVM 1.8u77 x86, on JNA 4.2.2\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/java-native-access/jna/issues/710>, or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AAuMrfZNa0DBdfo3d1NJamra5MdS_mOZks5qvFOHgaJpZM4KKm8K>\n> .\n>\n"}}
{"actor":{"display_login":"twall"}}