Re: delete_routine() - malfunction or misunderstanding?
- Posted by ghaberek (admin) Mar 12, 2013
- 1254 views
mattlewis said...
Back when I was developing this, I was planning on having the normal cleanup go through and dereference everything and invoke those cleanup routines. This often broke things, as certain resources would be gone when cleanup routines would try to use them (especially things like maps stored in eumem).
So far, I haven't found a good way to make all of that work, so the routines won't be called at exit. Of course, allocated memory goes away. I suppose that's another documentation update that needs doing.
That makes sense. Would it be possible instead to have a cleanup routine that only looks for objects that still exist and have a delete routine attached?
-Greg