I’ve written a programm that loops through several Rhino Files, in each file deletes several geometries and layouts.
I do this by opening a file and overwriting the RhinoDoc doc with RhinoDoc.ActiveDoc
Generally the programm works. However after a while (3-4 loops) I get an Error
One of the PageViews gets an AccessViolationException (see Screenshot below)
The programm also uses several RunScript Commands inside (DWG-Export)
Now I wonder, what the reason for that might be and how I could avoid that. (Is there a way to catch this?)
Interestingly enough, If I minimize Rhino it seems to be working better (Error still occurs though after a few more loops)
Here are a few Screenshots: