From the first code sample you posted just place an "ptr_remove(me);" in your tracer_xxxxx functions just after the while loop. That should do the trick.


Always learn from history, to be sure you make the same mistakes again...