gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Simple Question

#115790 - CFHworld - Fri Jan 19, 2007 2:50 am

I am using HAM and I am having trouble with deleting a background and displaying a new one. It says "Out of bounds, something is wrong with your deallocation, make sure allocation was correct". I know I probably sound like an idiot, I am a n00b even to code. Please help, thank you in advance!

#115802 - gmiller - Fri Jan 19, 2007 4:56 am

With the little information you have given it looks like your heap got messed up by either a free/delete of a pointer that was malloc/new of a different size. It would help if we knew if you were using C or C++. And if you are using dynamic memory. The message is try to tell you something that might be realted to the problem or just a result of something else you did.

#115904 - CFHworld - Sat Jan 20, 2007 2:08 am

Thank you! Problem solved.