Ups, found an error: Originally Posted by Lykurg Qt Code: Switch view delete a; delete a; To copy to clipboard, switch view to plain text mode a: address=1 pointsTo=NULL (b: address=2 pointsTo=1 (-> which points to NULL)) There "a" still points to "10". So in that short period you have dangling pointers: "a" and "b".
delete a;
Forum Rules
Bookmarks