How can I block layer delete?
I've tried in objectErased event but it doesn't work.
If I try the .Erase(false) method on the layertablerecord I receive an einprocessofcommitting error.
Sometimes I received also a generic error "Attempted to read or write protected memory"