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

Post Reply
Tantric
Junior Member
Posts: 17
Joined: Sat Oct 04, 2008 3:12 pm

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

Post 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.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

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

Post 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.

Tantric
Junior Member
Posts: 17
Joined: Sat Oct 04, 2008 3:12 pm

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

Post 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!

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

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

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

Post Reply