i test these before remove the object

pXent_settriggerflag(my, NX_TRIGGER_ENABLE, 0);
or
pXent_settype(my,0,0);

but error occur in ent_remove.