Page 1 of 1

free(pix) in GB.cpp/GBA.cpp causes crash

Posted: Sat Oct 18, 2008 3:32 am
by Tantric

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

Posted: Sat Oct 18, 2008 5:52 am
by spacy51

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

Posted: Sat Oct 18, 2008 3:24 pm
by Tantric

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

Posted: Sat Oct 18, 2008 5:09 pm
by spacy51

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" />