Has anyone encountered this problem: When using 3dorbit in 2d wireframe, Custom Entities which you have deleted will always be shown On the screen, and when you escape this command, they then disappear.
You asked this question on the forums before and the only reply (from me) was that his isn't as expected, but someone may be able to suggest a cause if you provided some sample code.
Do you see this behaviour with other custom entities - such as the polysamp custom entity sample in the ObjectARX SDK? If not, then I'd suggest starting a custom entity from scratch (ideally using using the ObjectARX Wizard to ensure you get your architecture correct) and then add your custom code a function at a time to the new entity until you see the prolem appear. That will help you narrow down which of your code is causing the problem.