
4 Jul
2011
4 Jul
'11
3:55 p.m.
Colin Caprani wrote:
On Sun, Jul 3, 2011 at 7:19 PM, Robert Ramey
wrote:
I now have one small(ish) problem: I get a memory exception when I try to delete a pointer to an object created from a load operation in the clear() function. It fails at: _ASSERTE(pHead->nBlockUse == nBlockUse); I think it's because the serialization library allocates on a different heap to the local one. This this sound right? I know it's not great practice but I can probably live with this leak until I implement shared_ptr which should eliminate it - am I right about that?!
My personal experience is that ignoring this will lead to grief down the road. I don't know what your load function does so I can't comment in particular case. Robert Ramey