<?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 AccessViolationException was unhandled by user code in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620664#M16687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got an access violation exception from my code. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stack Trace of exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Display.IDynamicDisplay.DrawPolygon(IPointCollection pointCollection)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ndGISMAP.ClassFiles.DynamicLayers.DynamicPolygonLayer.DrawDynamicLayer(esriDynamicDrawPhase DynamicDrawPhase, IDisplay Display, IDynamicDisplay DynamicDisplay) in D:\Tools\DynamicLayers\DynamicPolygonLayer.cs:line 264&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have uploaded my code &lt;/SPAN&gt;&lt;A href="http://www.mediafire.com/?a1kn2yb6dkl1wsj"&gt;http://www.mediafire.com/?a1kn2yb6dkl1wsj&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2012 08:25:13 GMT</pubDate>
    <dc:creator>chokahnchokahn</dc:creator>
    <dc:date>2012-01-12T08:25:13Z</dc:date>
    <item>
      <title>AccessViolationException was unhandled by user code</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620664#M16687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got an access violation exception from my code. Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stack Trace of exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.Display.IDynamicDisplay.DrawPolygon(IPointCollection pointCollection)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ndGISMAP.ClassFiles.DynamicLayers.DynamicPolygonLayer.DrawDynamicLayer(esriDynamicDrawPhase DynamicDrawPhase, IDisplay Display, IDynamicDisplay DynamicDisplay) in D:\Tools\DynamicLayers\DynamicPolygonLayer.cs:line 264&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have uploaded my code &lt;/SPAN&gt;&lt;A href="http://www.mediafire.com/?a1kn2yb6dkl1wsj"&gt;http://www.mediafire.com/?a1kn2yb6dkl1wsj&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 08:25:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620664#M16687</guid>
      <dc:creator>chokahnchokahn</dc:creator>
      <dc:date>2012-01-12T08:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: AccessViolationException was unhandled by user code</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620665#M16688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Attempted to read or write protected memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcObjects addin dockable window&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am changing mxdoc.Pagelayout = pPageLayout at run time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the line goes fine till add the "pPagelayout.replaceMaps(mxdoc.Maps)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at this moment the demon starts to play and after a little time of exercising the application and toggling between different layouts i got the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;reading archived forums it sounds an old issue between esri and .net&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Helppppppppppppppppppppppp&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 13:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620665#M16688</guid>
      <dc:creator>WaelSoltan</dc:creator>
      <dc:date>2012-04-02T13:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: AccessViolationException was unhandled by user code</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620666#M16689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Access Violation is a very generic error which simply indicates that the code is referencing memory which the OS has not made available to the process.&amp;nbsp; Often times, it is due to a null pointer dereference which can be seen by looking at the exception details.&amp;nbsp; The problem is whose fault is it?&amp;nbsp; If are writing C++ code then it could be your problem.&amp;nbsp; If you are just writing pure .NET code (no P\Invokes) then it is hard to imagine that the problem is yours.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your best shot is if you are able to consistently reproduce the problem.&amp;nbsp; If you can then file an incident with ESRI support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 01:45:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/accessviolationexception-was-unhandled-by-user/m-p/620666#M16689</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-04-03T01:45:19Z</dc:date>
    </item>
  </channel>
</rss>

