Rhinocrash. document object user data

I have my own derived class for user data.
I need to delete document objects to add their geometry again to the document with new commandhistory and new attributes (with new user data).
The problem is that rhino sometimes crashes.
I read a lot of topics but i cant’t solve it.

Hi Gianfranco,

Do you have sample code that you can provide that demonstrates the problem you are having?

– Dale