I found my problem.
That may be one of your problems.
Another one, though, is assuming that new actually returned a valid pointer. Another one is assuming that the pointer passed to delete is actually valid.
Neither assumption is necessarily valid.
I found my problem.
That may be one of your problems.
Another one, though, is assuming that new actually returned a valid pointer. Another one is assuming that the pointer passed to delete is actually valid.
Neither assumption is necessarily valid.