Original Post
I was just thinking about something to help me when debugging. When one of my objects or whatever crashes it can sometimes be hard to find out which object it was that actually crashed. I would like to add a class that saves the location where in the code the object that crashed was created. (I.e add this class to every object i suspect) It would get hold of the call-stack from within the constructor of a class and store this information, or something like that. So when the object dies i can just check which object it was that actually died. Are there tools for this? Otherwise it would be nice to make such a class, and use it together with a special assert that points out the location of the objects creation within the code. But i'm not sure how to do it. Maybe im not making sense at all ;) Thank you! //T