RhinoCrashDump.3dm does not contain UserDictionary data

(Menno Deij - van Rijswijk) #1

Every once in a while my “superb” code crashes Rhino, or Rhino crashes all of its own. I have noticed that any data I attach to an object in its UserDictionary is not seen when the RhinoCrashDump.3dm gets written. Is this on purpose, or could it be changed such that this gets written to the crash dump file too?

(Steve Baer) #2

I don’t believe we write any plug-in data when a crash occurs. At that point Rhino is trying to do it’s absolute best of safely writing the geometry, and that means just write the geometry without letting any outside code possibly mess things up.

(Menno Deij - van Rijswijk) #3

UserDictionary is not plugin data, it does not call any third party plugin WriteDocument methods when serializing.

(Steve Baer) #4

You’re right, but it is still UserData. I guess we just focus on getting the geometry written when we hit a crash. Basically Rhino is in “trauma” mode at that point and we are trying to minimize any possibility of throwing an exception when writing the data to disk.

(Menno Deij - van Rijswijk) #5

Ok, thanks for the info. I like that, “trauma” mode :smiley: