USHORT * pInt = new USHORT;
*pInt = 10;
std::cout << "*pInt: " << *pInt << endl;
long * pLong = new long;
*pLong = 90000;
std::cout << "*pLong: " << *pLong << endl;
*pInt = 20;
std::cout << "*pInt: " << *pInt << endl;
delete pInt;
*pInt = 30;
std::cout << "*pLong: " << *pLong << endl;
std::cout << "*pInt: " << *pInt << endl;
delete pLong;
I have deleted pInt...why is this not throwing an exception when assign 30 to it?