Confusing title, I know. Best way to describe the problem, though.
To solve the problem of incorrect (read: abysmal) tracking with added objects, I use a point-at-object script and some variables which contain the target objects (not just their names, I’m talking g.target = own here). But as soon as the object in question ends, and something’s tracking it, Blender crashes.
I’ve tried various things. It didn’t work when I told each object to clear its references just before its ending. And the try…except syntax doesn’t work either. Does anyone have any ideas?