[RhinoCommon] AddRhinoObject HistoryRecord

Hi,

I’m trying to use the method AddRhinoObject(CustomCurveObject curveObject, HistoryRecord history) http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_Tables_ObjectTable_AddRhinoObject_8.htm at the latest Rhino RC version (6.2.18054.19571, 23/02/2018) and I get a crash: crash

This issue related was resolved recently https://mcneel.myjetbrains.com/youtrack/issue/RH-22907

Regards,

Hi again,

Just solved this issue, my problem was I was initializing the HistoryRecord with version = 0. It does not fail and it crashes later when adding the object to the document. Would be nice if you document the constructor of the HistoryRecord with the values accepted or throw an exception with more detailed information: http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_HistoryRecord__ctor.htm

Regards,