Quote Originally Posted by Paul McKenzie View Post
Code:
 myPing->Ping;
~ping();
What are you trying to do with that line of code in red?

Regards,

Paul McKenzie
I was being dumb! I forgot destructors are automatically invoked when an object is destroyed or goes out of scope. I should have used the keyword delete myPing, ( I was trying to call the destructor with that line of code, which I see now is wrong.)