sbarisic / RaylibGame

Game example using Raylib and C#
MIT License
1 stars 0 forks source link

Incorrect format load issue. #2

Open bayganik opened 3 years ago

bayganik commented 3 years ago

Would you know why this issue comes up? I down loaded your entire rep and compiled it.

System.BadImageFormatException HResult=0x8007000B Message=An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Source=RaylibSharp StackTrace: at RaylibSharp.Raylib.InitWindow(Int32 width, Int32 height, String title) at RaylibTest.Engine.GameWindow..ctor(Int32 W, Int32 H, String Title) in C:\DevApps\RayLib\RaylibGame-main\RaylibTest\Engine\GameWindow.cs:line 19 at RaylibTest.Program.Main(String[] args) in C:\DevApps\RayLib\RaylibGame-main\RaylibTest\Program.cs:line 22

bayganik commented 3 years ago

solved. In case anyone else comes here. I went and build the csharp codes as x86 (32 bit) application and it did the trick.

sbarisic commented 3 years ago

Yes, it is meant to be compiled as x64 (works) or x86 (not tested) and not AnyCPU.

Side note, i ported the voxel code into another engine which i'm working on from scratch and this repository might not be updated https://github.com/sbarisic/libTech