Just a heads up I had to comment out free(pix); in GB.cpp. It was either doing it there, or the one in GBA.cpp - but having both causes my Wii port to crash on free(pix) when switching from one engine (game system) to the other. This variable overlaps between the GBA and GB cores - it's the only one that does like this. Renaming pix for the GB core - gbPix or something -would permanently solve this issue and would probably be safer for memory allocation.
free(pix) in GB.cpp/GBA.cpp causes crash
free(pix) in GB.cpp/GBA.cpp causes crash
Hm, but it seems like there's a free(pix) in gbCleanUp and [gba] CPUCleanUp, so there shouldn't be a problem, as long as these functions get called at the right times.
free(pix) in GB.cpp/GBA.cpp causes crash
Yes, I spoke too soon. It had to do with the way I was allocating this memory, nothing's wrong in VBA-M. Just ignore me!
free(pix) in GB.cpp/GBA.cpp causes crash
OK, thank you anyway for trying to give something back to your code base [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />