Comments (2)
Right now it appears to be resolved, but there may be more trouble down the line, as the solution was to change my build format from x86 to x64
from glfw-net.
The BadImageFormat means that the native DLL and managed assembly have mismatched CPU architecture (i.e. you are building x86 assembly, but referencing native x64 libraries, or vice-versa). GLFW offers binaries for both architectures, though your managed assembly will need to be built with the matching architecture.
32-bit Binaries
64-bit Binaries
If you want to build your project for for x86, you would only need to get the native x86 DLL to make it work.
On a side note, the only binaries you need are the .dll ones, not the ones with .lib extension. The .lib files are mainly for static linking in C/C++, you only need the dynamic ones.
from glfw-net.
Related Issues (20)
- Glfw.GetKeyName(Keys key, int scanCode) throws internal exception when used with non-printable key HOT 2
- Unable to load shared library 'glfw' or one of its dependencies HOT 2
- AcessViolation in FileDrop event HOT 1
- Why GLFW.NET does't see the Vulkan? HOT 10
- A callback was made on a garbage collected delegate of type 'GLFW.NET!GLFW.MouseCallback::Invoke'. HOT 4
- BadImageFormatException on .NET framework 4.7.2 via NuGet and source HOT 2
- Application crashes when running on x86 HOT 11
- Build GLFW-Net in .NET 5 ? HOT 1
- GLFW.Exception WGL: OpenGL profile requested but WGL_ARB_create_context_profile is unavailable HOT 2
- MouseEventArgs.cs Where is Type "Point"
- GLFW Keeps calling Garbage Collected Fields HOT 2
- Resizing Problem when using Skia HOT 4
- Illegal `glfwDestroyWindow` in window close handler HOT 2
- glTexImage2D throws System.AccessViolationException: HOT 3
- GLFW.Exception: Cannot set swap interval without a current OpenGL or OpenGL ES context HOT 1
- Glfw SetWindowPositionCallback Bug
- Calling .Fullscreen() causes an exception.
- Update Nuget Package
- AOT - Ahead of Time | native code compiling HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw-net.