Error Initializing SQLitePCLMethod 'sqlite3_soft_heap_limit64'
(1) By Josh (DevilDog2098) on 2022-08-03 14:35:43 [source]
So I'm working on a .NET MAUI Application and when it gets to the create database method it's throwing the following error:
Method 'sqlite3_soft_heap_limit64' in type 'SQLitePCL.SQLite3Provider_dynamic_cdecl' from assembly 'SQLitePCLRaw.provider.dynamic_cdecl, Version=2.0.4.976, Culture=neutral, PublicKeyToken=b68184102cba0b3b' does not have an implementation.
I have SQLitePCL.Batteries_V2.Init(); added to the MauiApplication main method. No idea what I'm missing, any assistance would be appreciated.
(2) By Ryan Smith (cuz) on 2022-08-03 16:15:00 in reply to 1 [link] [source]
No idea what I'm missing, any assistance would be appreciated.
That's how all of us feel in this regard. My suggestion is to contact the MAUI people or .NET forum and ask.
What we can tell you is that the SQLite codebase most assuredly has a "sqlite3_heap_limit" method, but certainly doesn't have anything containing PCL/Batteries. All of that must be added/subtracted in whatever wrapper code MAUI uses.
(3) By Josh (DevilDog2098) on 2022-08-03 17:49:05 in reply to 2 [link] [source]
I did figure it out. I added the nuget packages to the entire solution rather than the project itself and everything is working fine now.