Of course ent_remove is going to cause an error if while(1) is set!
change while(1) to while(my)!


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).