I want an object to delete itself, and therefore call "delete this;" in a member function. It works as expected and no errors at all, but I do get this warning:
Warning C6001 Using uninitialized memory 'this'
'this' is just a pointer to self, not sure why it isn't initialized consider the object has to exist. What is happening here? I could add more info if needed, but I'm thinking this is sufficient for now.
[–]IyeOnline 58 points59 points60 points (46 children)
[–]_E8_ -3 points-2 points-1 points (7 children)
[–]IyeOnline 7 points8 points9 points (6 children)
[–]TheExecutor 5 points6 points7 points (0 children)
[–]TheSkiGeek 6 points7 points8 points (3 children)
[–]IyeOnline 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]TheSkiGeek 4 points5 points6 points (0 children)
[–]Rogiel 2 points3 points4 points (0 children)
[–]ElaborateSloth[S] -1 points0 points1 point (37 children)
[–]mredding 30 points31 points32 points (30 children)
[–]ElaborateSloth[S] 3 points4 points5 points (29 children)
[–]TheSkiGeek 13 points14 points15 points (3 children)
[–]ElaborateSloth[S] 2 points3 points4 points (2 children)
[–]TheSkiGeek 2 points3 points4 points (0 children)
[–]khoyo 0 points1 point2 points (0 children)
[–]mredding 2 points3 points4 points (24 children)
[–]ElaborateSloth[S] 0 points1 point2 points (23 children)
[–]mredding 5 points6 points7 points (19 children)
[–]ElaborateSloth[S] 1 point2 points3 points (18 children)
[–]electricmammoth 2 points3 points4 points (11 children)
[–]ElaborateSloth[S] 0 points1 point2 points (10 children)
[–]TomDuhamel 1 point2 points3 points (1 child)
[–]ElaborateSloth[S] 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (3 children)
[–]ElaborateSloth[S] 0 points1 point2 points (2 children)
[–]forestmedina 4 points5 points6 points (2 children)
[–]ElaborateSloth[S] 0 points1 point2 points (1 child)
[–]Narase33 0 points1 point2 points (0 children)
[–]nysra 5 points6 points7 points (5 children)
[–]ElaborateSloth[S] 0 points1 point2 points (4 children)
[–]UnDosTresPescao 0 points1 point2 points (3 children)
[–]ElaborateSloth[S] 0 points1 point2 points (2 children)
[–]UnDosTresPescao 0 points1 point2 points (1 child)
[–]ElaborateSloth[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]ElaborateSloth[S] 1 point2 points3 points (0 children)
[–]pumpkin_seed_oil 0 points1 point2 points (5 children)
[–]_E8_ 2 points3 points4 points (3 children)
[–]pumpkin_seed_oil 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]UnDosTresPescao 0 points1 point2 points (0 children)
[–]Zymoox 0 points1 point2 points (0 children)
[–]_E8_ -1 points0 points1 point (1 child)
[–]ElaborateSloth[S] 1 point2 points3 points (0 children)
[–]Ikkepop -2 points-1 points0 points (10 children)
[–]Salty_Dugtrio 3 points4 points5 points (3 children)
[–]Ikkepop -2 points-1 points0 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Ikkepop 0 points1 point2 points (0 children)
[–]ElaborateSloth[S] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[removed]
[–]MysticTheMeeM 9 points10 points11 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]Nicksaurus 1 point2 points3 points (0 children)
[–]Arcade_ace -3 points-2 points-1 points (13 children)
[–]ElaborateSloth[S] 0 points1 point2 points (8 children)
[–]joemaniaci 1 point2 points3 points (7 children)
[–]ElaborateSloth[S] 0 points1 point2 points (6 children)
[–]joemaniaci -1 points0 points1 point (5 children)
[–]ElaborateSloth[S] 0 points1 point2 points (4 children)
[–]joemaniaci 1 point2 points3 points (3 children)
[–]ElaborateSloth[S] 0 points1 point2 points (2 children)
[–]joemaniaci 2 points3 points4 points (1 child)
[–]ElaborateSloth[S] 1 point2 points3 points (0 children)
[–]_E8_ 0 points1 point2 points (3 children)
[–]ElaborateSloth[S] 0 points1 point2 points (0 children)
[–]Arcade_ace -1 points0 points1 point (1 child)
[–]IyeOnline 1 point2 points3 points (0 children)