Unbelievable behaviour!

Hi guys!
While I’m trying to debug my plug-in, trying to execute line 2807, the code “jumps” suddenly to another position in project.
I mean that no exception is raised and line 2813 is never reached.
Code “jumps” inside a different method that calls (indirectly) the method i’m trying to debug.
As you can see, variable objectGeometryDuplicate is not null, in fact it is a valid Rhino.Geometry.Point object.

I don’t know what to do!
Why RhinoDoc.ActiveDoc.Objects.Add() should do that?
Thanks for your help!

Hi @software_comas,

Without having code, that we can run here, that reproduces what you are seeing, it’s difficult to speculate.

– Dale

I can understand, @dale, but this is part of a 120K lines of code project.
I don’t think that look at the code could be easier.
Can you try to guess?
Can you try to tell wich conditions could generate this kind of error, calling that method?