sqlite-net: iOS: API call with invalid database connection pointer

On iOS I’m getting this: 2019-07-05 13:12:24.365627-0400 TwoTypeExample.iOS[2189:144181] [logging] API call with invalid database connection pointer 2019-07-05 13:12:24.365901-0400 TwoTypeExample.iOS[2189:144181] [logging] misuse at line 154344 of [95fbac39ba]

I’ve tried narrowing this down and it seems to be coming from the Finalize of the SQLiteConnection. I’m not getting any errors on iOS other than that error message, the data has not been corrupted or missing. I’ve not seen anything like this on Android.

I tried opening the connection with and without the SQLiteOpenFlags.SharedCache flag, but the error message occurred either way. This is the same in both Android and iOS:

SQLiteConnection conn = new SQLiteConnection(_filespec, SQLiteOpenFlags.SharedCache | SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create | SQLiteOpenFlags.FullMutex, true, null);

There’s been one XF forum entry on a similar issue, but it didn’t help me determine the root cause.

I do have a sample project here which also contains a video as well as a log file.

Any thoughts would be appreciated.

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 1
  • Comments: 20

Most upvoted comments

Getting identical error as @StevenKek