The problem may be that you are writing to a pointer after it has been free'd, if you're running a debug build application, such out-of-bounds heap modifications will not be detected until the area is once again allocated. Are you absolutely sure you're not doing anything like that
Also, see to it that you're using delete[] to free arrays, and delete to free single instances. new[] => delete[], new => delete, that's the law :)
|