A Rhino Crash When Read External 3dmFile AllInstanceDefinitions;

Hi All,

I meet a crash when I read instance definitions in external 3dm file in grasshopper. The external 3dm file contains several blocks I need to import to this rhino file.

Rhino version is 6.10.18264.16071. I tried higher rhino version and the problem disappeared, but cannot run on this Rhino.

Do I have to upgrade my Rhino or something goes wrong with my code?

code below:

private void RunScript(string path, ref object A)
{

using(Rhino.FileIO.File3dm lib = Rhino.FileIO.File3dm.Read(path))
{
  foreach(InstanceDefinitionGeometry defGeo in lib.AllInstanceDefinitions)//this line trigger the crash
  {
    Print(defGeo.Name);
  }
}

}

Thanks

That is very old, and as you noticed newer version fixes the problem. You are about 20 service releases behind.

Why not?

Yes

No, code looks fine.