<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic TraceFlowsolver.FindFlowElements Fails in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/traceflowsolver-findflowelements-fails/m-p/41262#M1075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have got a program that tries to perform a "Find Connected" trace&amp;nbsp; on a network starting on a edge on which an edge flag has been placed and bounded by a set of edge barriers.&amp;nbsp; It consistently fails at this line:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;tfs.FindFlowElements(esriFlowMethod&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.esriFMConnected, edgeElements, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; junctionEIDs, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; edgeEIDs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;With this error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;+&amp;nbsp; $exception {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."} System.Exception {System.AccessViolationException}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;where tfs is a &lt;/SPAN&gt;ITraceFlowSolverGEN&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Barriers are set on edges where an intersection is found between a selected polygon graphic and a line feature and the origin flag is set on the longest line feature found inside the polygon.&amp;nbsp; The method where the trace is attempted is "ExecuteTrace." The full C# class is attached.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should also say that on occasion the trace has &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; failed, however its returned results that are the inverse of what I expected -- that is, everything OUTSIDE the polygon is traced when I thought everything INSIDE the polygon would be.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 20:23:32 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2014-10-02T20:23:32Z</dc:date>
    <item>
      <title>TraceFlowsolver.FindFlowElements Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/traceflowsolver-findflowelements-fails/m-p/41262#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have got a program that tries to perform a "Find Connected" trace&amp;nbsp; on a network starting on a edge on which an edge flag has been placed and bounded by a set of edge barriers.&amp;nbsp; It consistently fails at this line:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;tfs.FindFlowElements(esriFlowMethod&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.esriFMConnected, edgeElements, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; junctionEIDs, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; edgeEIDs);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;With this error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;+&amp;nbsp; $exception {"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."} System.Exception {System.AccessViolationException}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;where tfs is a &lt;/SPAN&gt;ITraceFlowSolverGEN&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Barriers are set on edges where an intersection is found between a selected polygon graphic and a line feature and the origin flag is set on the longest line feature found inside the polygon.&amp;nbsp; The method where the trace is attempted is "ExecuteTrace." The full C# class is attached.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should also say that on occasion the trace has &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; failed, however its returned results that are the inverse of what I expected -- that is, everything OUTSIDE the polygon is traced when I thought everything INSIDE the polygon would be.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 20:23:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/traceflowsolver-findflowelements-fails/m-p/41262#M1075</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2014-10-02T20:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: TraceFlowsolver.FindFlowElements Fails</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/traceflowsolver-findflowelements-fails/m-p/41263#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the problem.&amp;nbsp; I was not getting the value for UserSubID correctly when setting barriers and flags.&amp;nbsp; When corrected the routine now works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 17:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/traceflowsolver-findflowelements-fails/m-p/41263#M1076</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2014-10-16T17:04:20Z</dc:date>
    </item>
  </channel>
</rss>

