chrisdill / raylib-cs

C# bindings for raylib, a simple and easy-to-use library to learn videogames programming

Home Page:http://www.raylib.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] `DllImport` makes problems on some pcs

MrScautHD opened this issue · comments

Before submitting a new issue, please verify and check:

  • The issue is specific to Raylib-cs and not raylib
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of Raylib-cs

Issue description

Hello, I'm encountering an issue with the .dll importer in C#. It's a bit puzzling because it seems to work on some PCs but not others. On my main development machine, everything runs smoothly. However, on my test PC, I consistently encounter an error. Interestingly, on my sister's PC, it works flawlessly. It's quite perplexing, but I found that replacing the .dll with the original raylib one resolves the issue on any PC.

Environment

OpenGL: 3.3
Raylib-cs: 6.0
Raylib: 5.0

Issue screenshot

image

From what you said in discord it is a windows bug and it started working for you after setting up jetbrains rider. Closing the issue but feel free to add further details here that might help anyone else who runs into this.