So if objectid gets disconnected from the entity, then can we at least be sure that "goodbye" will always be fired?
As Tony would say, an another of my "vague" description
Here is what bothers me actually.
Let's say i have an entity, a line in autocad. But in my program, it is not just a line, it is, for example "UTP CAT 5 cable". I write that string in xrecord of entity. When file is closed/opened, I want to read that string (and with other stuff) so I know that line is indeed mine and what it represents. That will most likely work.
But I want that when user stretches line, my program to be updated with new distance, so i hook to entitys "modified" event. That also will most likely work.
But, what to do when user deletes entity? If I unhook events at that moment, I will not be informed that it has been unerased once the user runs "undo" command. If I keep it connected then, you say - I cannot keep it forever in that state, because, you say - eventually they will be destroyed sometime?
What is a common practice to this problem?