C
C#3y ago
Starlk

System.AccessViolationException

I'm trying to create a simple multiplayer game using SignalR and Raylib, I wrote a really simple demo to just test things out https://paste.mod.gg/vurhhzhnueak/0 (This is the entity class https://paste.mod.gg/rrdqrlumtmag/1), and it actually works but that is until I try to open another instance of the same program, which cases it to throw an System.AccessViolationException exception @ line 49 Raylib.ClearBackground(Color.WHITE);, any idea what's causing it?
3 Replies
Yawnder
Yawnder3y ago
Is the "same program" in the same executable? I mean is it the same physical file on the disk?
mtreit
mtreit3y ago
AccessViolation almost certainly means something is going horribly wrong in native code. If you get a memory dump and then use a native debugger like windbg to analyze it you might get a clue as to what's going wrong.
Starlk
StarlkOP3y ago
Yes
Want results from more Discord servers?
Add your server