Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect format load issue. #2

Open
bayganik opened this issue Jan 8, 2021 · 2 comments
Open

Incorrect format load issue. #2

bayganik opened this issue Jan 8, 2021 · 2 comments

Comments

@bayganik
Copy link

bayganik commented Jan 8, 2021

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
Copy link
Author

bayganik commented Jan 8, 2021

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
Copy link
Owner

sbarisic commented Jan 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants