|
|
> I see. The array itself was not dynamic, so there was no reason to delete
> it. Despite my limited knowledge of the subject, I managed to do the right
> thing by deleting them individually... They were deleted in the same
> manner as they were created. There's more to this issue I need to explore,
> and I'm not ashamed to admit it ;)
>
> Who's going to trust my programs, now that my ignorance is known? I could
> always provide the source...
Hehe I had something similar where I had forgotten to type the "()" after a
release call on a texture object (this is DirectX). For some reason the
compiler though that:
texture1->Release;
was a perfectly fine statement, but of course it wasn't calling the release
function to free up the memory. It took me ages to track this one down,
because quickly reading that line you don't notice the () missing, and it
just caused random crashes occasionally on exit.
Took me a while to figure out the whole delete [] palaver too.
Oh well, you live and learn :-)
Post a reply to this message
|
|