Skip to content

UWP: Crash in .NET native release builds when consuming winsqlite3.dll #375

@rigdern

Description

@rigdern

Two changes need to be made to all of the DllImports for "winsqlite3":

  1. Calling convention has to be switched from Cdecl to StdCall
  2. ExactSpelling has to be set to true

For example:

[DllImport("winsqlite3", EntryPoint = "sqlite3_open", CallingConvention = CallingConvention.Cdecl)]

should be:

[DllImport("winsqlite3", EntryPoint = "sqlite3_open", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions