Calling convention of Devart sqlite

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
zhichao
Posts: 1
Joined: Fri 13 May 2011 19:38

Calling convention of Devart sqlite

Post by zhichao » Fri 13 May 2011 19:46

I am compiling sqlite from source to take advantage of the SEE for encryption support. During this, I found both public domain sqlite3.dll and the one I compiled are using __cdecl calling convention. I am wondering when devart P/Invoke the sqlite3.dll, does it use CallingConvention.StdCall (which is default) or CallingConvention.CDecl? Because mixing these two, it will cause stack corruption. Clarification is really needed!

Please help!

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Tue 17 May 2011 07:46

We are using CallingConvention.Cdecl.

arcyonline
Posts: 1
Joined: Tue 21 Jun 2011 20:45

Post by arcyonline » Tue 21 Jun 2011 21:35

thanks for the info! well useful.

Post Reply