-
Notifications
You must be signed in to change notification settings - Fork 112
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
winsqlite3.dll should use CallingConvention.StdCall #149
Comments
I'm a bit short on knowledge here, so I ask your patience with a possibly dumb question: If the C# code is using the wrong calling convention for that native DLL, why does it work? |
You'll only observe differences in a few corner cases. The two things that have been mentioned so far are:
|
…build. leave all of them Cdecl except winsqlite3, which apparently needs to be StdCall. see #149
OK, I have just pushed 1.1.3 to nuget, with the change to StdCall for winsqlite3. So I'm closing this as fixed. That said, I'd be happier if I had a test case which failed with Cdecl. My test suite, which contains a number of cases where SQLite invokes a managed callback, passes with StdCall, but it also passed with Cdecl. So at the moment, I see no visible difference. |
Still working out the details on this one, but it sounds like the P/Invokes for
winsqlite3.dll
should useCallingConvention.StdCall
instead ofCdecl
.cc @vrk7bp
The text was updated successfully, but these errors were encountered: