From: Frederic B. <fre...@fr...> - 2012-04-24 15:54:05
|
Hi James, just a guess here, but in the past, I had to fix issues brought when converting raw pointers to smart pointers and ending up deleting the pointer given by the smart pointer explicitly. For example : SGSharedPtr<MyClass> myPtr = new MyClass; then delete myPtr; or delete myPtr.get(); afterward, the destructor of SGSharedPtr<MyClass> does another delete on the same memory and may crash, depending the system and the memory layout Regards, -Fred |