I create a NURBSCurve via code. when cloning it i get this Error.
I thought only Rhino Objects can belong to a document not Geometery classes?
What could be the problem here?
(I am not doing this on the GUI Thread.)
Rhino.Runtime.DocumentCollectedException: This object cannot be modified because it is controlled by a document.
at Rhino.Runtime.CommonObject.ConstPointer()
at Rhino.Geometry.Curve.Duplicate()
at ....
I found the problem.
The NURBSCurve had already been disposed when I tried to clone it.
I declared it (in F#) with use nc = instead of let nc =. That was the mistake.