robertohuertasm / SQLite4Unity3d

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

error 'A dynamic link library (DLL) initialization routine failed. '. #78

Open Silverburst opened 6 years ago

Silverburst commented 6 years ago

I have a project that builds and works fine on the development machine (Windows 10 Home) When I copy the built project to another machine (Windows 10 Pro) - I get the following error:

Failed to load 'C:/MyNet/testdb_Data/Plugins/sqlite3.dll' with error 'A dynamic link library (DLL) initialization routine failed. '.

To simplify - the scene built is the CreateDBFromScript example scene Any ideas? Again - the same exact copied build of the project works on one machine, not on another...

jddorn commented 6 years ago

I'm having the same problem with both a Windows 8.1 (pro, .NET 4.5) and Windows 10 (home, .NET 4.7). This error goes away when the machines install .NET 3.5 from the Windows Features. For whatever reason .NET 4+ does not play nice with this DLL.

Unless you've used your Windows 8/10 machine for development, it is unlikely .NET 3.5 will be installed by default. Most new Win10 consumer machines will not have .NET 3.5 enabled, and will cause this DLL to fail loading, quietly (no direct crash).

This is quickly going to become an issue as Unity transitions to .NET 4.6 as the default, and begins dropping support for .NET 3.5.

tpnet commented 4 years ago

I also have this problem. How to solve this problem

Silverburst commented 4 years ago

I never solved the .DLL issue - I ended up using a pure c# version of sqLite - no .DLL needed... Its been a while, but I think I used something from the asset store...

On Fri, Jan 10, 2020 at 10:04 AM SkyHand notifications@github.com wrote:

I also have this problem. How to solve this problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/robertohuertasm/SQLite4Unity3d/issues/78?email_source=notifications&email_token=AIBMG562OMS47BOG6BDATGTQ5CE6BA5CNFSM4EEEYVSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIUF2NQ#issuecomment-573070646, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBMG54J3XRUZRYJGWAOLMTQ5CE6BANCNFSM4EEEYVSA .