I' am using objectErased event of AcDbDatabaseReactor.
Inside this function I build a selection set.
But building a selection set makes AutoCAD erases all entities which belongs to that set What can be
the problem? Is this a bug?

I want to write a objectErased function that updates the entities surrounding the deleted entity. I use a "C" selection set based on the AcDbExtents of the deleted entity to find these neighbouring entities.

It appears to be this way that when I make a selection set autocad immediatly deletes all entities from this selection set as soon as it gets control back. I tried making the selection set with acedSSAdd instead of acedSSGet, I even tried making a new selection set just before the end of my function, but that doesn't change a thing.

Please help!