Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

BadImageFormatException loading unmanged DLL from nml_libs #91

Open
zkxs opened this issue Mar 11, 2023 · 0 comments
Open

BadImageFormatException loading unmanged DLL from nml_libs #91

zkxs opened this issue Mar 11, 2023 · 0 comments
Labels
bug Something isn't working up for grabs Uncle Sam wants YOU to resolve this issue!

Comments

@zkxs
Copy link
Collaborator

zkxs commented Mar 11, 2023

12:40:26 PM.941 (  0 FPS)	[INFO] [NeosModLoader] loading assemblies from nml_libs
12:40:27 PM.497 (  0 FPS)	[ERROR][NeosModLoader] error loading assembly from D:\Neos\app\nml_libs\Magick.Native-Q16-x64.dll: System.BadImageFormatException: 
File name: 'D:\Neos\app\nml_libs\Magick.Native-Q16-x64.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom(string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at NeosModLoader.AssemblyLoader.LoadAssembly (System.String filepath) [0x00039] in <12833d5d0793412ca8252021544de084>:0 
12:40:27 PM.612 (  0 FPS)	[ERROR][NeosModLoader] error loading assembly from D:\Neos\app\nml_libs\git2-106a5f2.dll: System.BadImageFormatException: 
File name: 'D:\Neos\app\nml_libs\git2-106a5f2.dll'
  at (wrapper managed-to-native) System.Reflection.Assembly.LoadFrom(string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at NeosModLoader.AssemblyLoader.LoadAssembly (System.String filepath) [0x00039] in <12833d5d0793412ca8252021544de084>:0 

I'm pretty sure this is because the way we load nml_libs doesn't work for unmanaged, aka native DLLs. Loading the unmanaged DLLs from the Neos install directory appears to work fine.

@zkxs zkxs added bug Something isn't working up for grabs Uncle Sam wants YOU to resolve this issue! labels Mar 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working up for grabs Uncle Sam wants YOU to resolve this issue!
Projects
None yet
Development

No branches or pull requests

1 participant