robertohuertasm / SQLite4Unity3d

SQLite made easy for Unity3d
MIT License
1.27k stars 265 forks source link

BadImageFormatException Error on HoloLens #108

Closed CanYalcin closed 4 years ago

CanYalcin commented 4 years ago

I'm trying this examples on HoloLens. When I try to use "new SQLiteConnection(databasePath, SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create);" function, I get "BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" this error. People says that it's 32bit-64bit compability error. In Unity project, my settings are: Build platform: UWP Target Device: HoloLens Architecture: x86 Scripting Backend: .Net I tried examples directly, didn't work. I changed sqlite3.dll platform settings scripting backend to Dot net, didn't work. I deleted "plugins/x64" folder, didn't work. I exclude all platforms from "plugins/x64/sqlite3.dll", didn't work. Is there any solution for this?

CanYalcin commented 4 years ago

https://github.com/robertohuertasm/SQLite4Unity3d/issues/90#issuecomment-431304295

I downloaded the file in this link and changed dll in "plugins/x86/" folder. It worked.