Of course, this pertains to the original code in the first post. The subsequent code had two errors, which I pointed outQuote:
Originally Posted by Paul McKenzie
a) wrong form of delete (which is undefined behavior)
b) changing the pointer value (which more than likely cause a crash, but not guaranteed to so).
Regards,
Paul McKenzie
