I'm trying to develop a custom downstream trace Addin for ArcGIS using .net (C#) Miner.Interop.Framework Assembly.
By calling the Trace Downstream Function:
pElecTrace.TraceDownstream(pGN, pElecTraceSettings, pCurrentStatus, 179998, ESRI.ArcGIS.Geodatabase.esriElementType.esriETJunction, Miner.Interop.SetOfPhases.None, Miner.Interop.mmDirectionInfo.establishBySourceSearch, 0, ESRI.ArcGIS.Geodatabase.esriElementType.esriETEdge, iJunctionBarriers,iEdgeBarriers, false, out pJunctions, out pEdges);
I get The NullReferenceException (Object reference not set to an instance of an object)
My Assumption is that it is because I have declared
IMMCurrentStatus pCurrentStatus = null;
by following the mentioned Example. And It is the only Null Element in the called function.
Now the problem is that , I don't have any idea what "Current Status" really is. Neither could I find any explanation in the Documentation as to what Current Status really is or where can I retrieve its information from.