Raylib-CSharp-Vinculum icon indicating copy to clipboard operation
Raylib-CSharp-Vinculum copied to clipboard

Problem with wrapper of SetAutomationEventList

Open danilwhale opened this issue 1 year ago • 0 comments

There could be problem with wrapper of SetAutomationEventList, which I coded In raylib code, this function sets internal pointer to the list, but in our case, it only being fixed for wrapper-method statement and can be moved by GC again. This means, that pointer can be moved by GC to different memory location and then raylib will try to access invalid pointer of data. I think this could be implemented by pinning pointers permanently and unpinning it in UnloadAutomationEventList wrapper. Later I may try to implement this and make PR.

danilwhale avatar Nov 24 '23 10:11 danilwhale