gen2brain / raylib-go

Go bindings for raylib, a simple and easy-to-use library to enjoy videogames programming.
zlib License
1.61k stars 165 forks source link

Issues with using DLL on Windows #376

Closed hx-khan closed 6 months ago

hx-khan commented 6 months ago

It seems that the crash is happening on the purego side. I am using the DLL directly as advertised in the README so I can avoid CGO. The program I am trying to run is the basic example provided in the README. Also using DLL from raylib-5.0_win64_msvc16 as instructed.

Getting the following error: Screenshot 2024-04-19 152628

JupiterRider commented 6 months ago

Hey @hx-khan, thank you for reporting. This issue is related to this commit: https://github.com/ebitengine/purego/commit/9ef47a2286c0919e2d0129570e89caadfffe882e

I am going to provide a fix.