tjanczuk / edge

Run .NET and Node.js code in-process on Windows, MacOS, and Linux
http://tjanczuk.github.io/edge
Other
5.41k stars 642 forks source link

Edge using a dll failed if the dll is compiled as 32bits #730

Closed cb7754 closed 3 weeks ago

cb7754 commented 1 year ago

When I tried to use a dll compiled in 32bits Edge throw the following error:

return edge.initializeClrFunc(options); ^ Error: Could not load file or assembly 'file:///C:\Users...\UsingEdge.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

This behaviour doesn't ocurr if the library is compiled in 64bits.

I was using the sample 105_add7_dll.js and Sample105.cs