Basic window example crash
alfaus opened this issue · comments
The basic_window example (and any other program that uses the module) crash with the message "free(): invalid pointer". I have installed the version of the module that corresponds to the SDL version of the system. Other programs using a SDL wrapper (in pascal) work without problems.
Can you try and compile / run with the flag -d sdl_memory_no_gc
and see if that helps? It disables the garbage collector so it does not interfere with SDLs memory functions. The trade off is that you then need to manually free what you allocate and will likely have a small memory leak on SDL start or shutdown
Yes! That workaround works perfectly. Thanks a lot!
I'm glad to help. Enjoy coding with V and SDL2!