Well, the way around this is to fix what you're doing wrong. I guess if you've got an array on the heap, you used new[]? If so, use delete[] to delete it. Or if you leak your memory you should fix that. Without more information, I don't know what's gone wrong.