AnsweredAssumed Answered

The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))

Question asked by Eric Snyder on Apr 14, 2020
Latest reply on Apr 14, 2020 by Eric Snyder

I have been working on this code for days. It seems out of the blue last night I start getting the error:

The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))

I was getting the error on  

curve.ReverseEvaluate(endPoint[0], endPoint[1], endPoint[2]);

I started thinking that my endPoint array was a bad location or something. I plotted these points in my model and they appear to be exactly on the ends of the edge I am trying to get start and end parameters for.

 

I added the following line as a simple test:

var identity = curve.Identity();

I get the same error. I am thinking this is a com error???

I have confirmed that all my parameters have values although they are com so I can't real;ly see anything using the debuger. My code in context:

 

private geo.Point3d GetPointOnEdgeACertainPercentFromStartVertex(double distanceInPercent, ref IFace2 face, ref IEdge edge)
{
if (distanceInPercent < 0 || distanceInPercent > 100)
{
throw new ArgumentOutOfRangeException("distanceInPercent parameter must be between 0 and 1.");
}
ICurve curve = (ICurve)edge.GetCurve();
var identity = curve.Identity();

Any guidance would be appropriated.

Outcomes