<?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 Re: Arcgis Engine 10.1 Attempted to read or write protected memory error. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305360#M7934</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This exception is thrown usually when you use a variable (or pass it to a function) with a member pointing to another read-only or non-existing (non-initialized) object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on your code but usually I solve this with the IClone interface.&lt;/P&gt;&lt;P&gt;In a debugger you can usually spot which variable is the culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(in your case it might be needed to put a debug build on the server, and start a remote debugging session to see where it goes wrong)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 09:03:44 GMT</pubDate>
    <dc:creator>GwenRoyakkers</dc:creator>
    <dc:date>2014-10-02T09:03:44Z</dc:date>
    <item>
      <title>Arcgis Engine 10.1 Attempted to read or write protected memory error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305358#M7932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are in process of upgrading our sde to 10.1 from 9.3.1. I have a Arcgis engine console application coverted to Arcgis 10.1. The exe runs itself runs fine when i run manually, but when i run as sql job it giving me following error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Unhandled Exception:System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at ESRI.ArcGIS.esriSystem.AoInitializeClass.IsProductCodeAvailable(esriLicenseProductCode ProductCode) at LicenseInitializer.Initialize() "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to my understanding we donot have to install arcgis engine developer kit on server. Arcgis engine application should be able to run using desktop license.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server - Windows server 2008, Enterprise&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE - 64bit - SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Arcgis dekstop - sp1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL server 2008 R2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I Set the project to run under - x86 platform &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Embed Interop Types - False.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have a clue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 18:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305358#M7932</guid>
      <dc:creator>KrishnaSista</dc:creator>
      <dc:date>2013-01-15T18:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis Engine 10.1 Attempted to read or write protected memory error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305359#M7933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We encountered a similar error with a command line application running from Windows Task Scheduler. We had to check the 'Run with highest privileges' option on the General tab of Task properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 17:42:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305359#M7933</guid>
      <dc:creator>NeilDuxbury</dc:creator>
      <dc:date>2014-09-17T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis Engine 10.1 Attempted to read or write protected memory error.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305360#M7934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This exception is thrown usually when you use a variable (or pass it to a function) with a member pointing to another read-only or non-existing (non-initialized) object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on your code but usually I solve this with the IClone interface.&lt;/P&gt;&lt;P&gt;In a debugger you can usually spot which variable is the culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(in your case it might be needed to put a debug build on the server, and start a remote debugging session to see where it goes wrong)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 09:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-10-1-attempted-to-read-or-write/m-p/305360#M7934</guid>
      <dc:creator>GwenRoyakkers</dc:creator>
      <dc:date>2014-10-02T09:03:44Z</dc:date>
    </item>
  </channel>
</rss>

