<?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 AccessViolation when setting layer.visible in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424088#M5128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the Quartz 100 SDK (Release version) I am getting an AccessViolationException when trying to set the IsVisible value on a RasterLayer object. I checked the CanChangeVisibility property and it was true, but still throws the error when set. StackTrace was null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 16:47:15 GMT</pubDate>
    <dc:creator>JoshAxeen</dc:creator>
    <dc:date>2016-11-22T16:47:15Z</dc:date>
    <item>
      <title>AccessViolation when setting layer.visible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424088#M5128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the Quartz 100 SDK (Release version) I am getting an AccessViolationException when trying to set the IsVisible value on a RasterLayer object. I checked the CanChangeVisibility property and it was true, but still throws the error when set. StackTrace was null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 16:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424088#M5128</guid>
      <dc:creator>JoshAxeen</dc:creator>
      <dc:date>2016-11-22T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: AccessViolation when setting layer.visible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424089#M5129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you provide the code you wrote to reproduce this? If we're not able to repro with that code we may need the raster dataset you are using too, or a sample of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424089#M5129</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2016-11-22T21:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: AccessViolation when setting layer.visible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424090#M5130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the section of code that loads the raster layer (Aerials) into the map. CurrentEsriMap is an the instance of EsriMap from your API that has been placed on window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                #region Load Aerials&lt;/P&gt;&lt;P&gt;                var aerialLoader = new AerialMapPackageLoader();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                // Construct the list of search paths.&lt;/P&gt;&lt;P&gt;                aerialLoader.AddSearchPaths(this.GetSearchPaths(AERIALS_EXTENSION_FORMATTER));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                IAerialMapPackage aerialPackage = await aerialLoader.SearchAndOpenAsync();&lt;/P&gt;&lt;P&gt;                if (aerialPackage != null)&lt;/P&gt;&lt;P&gt;                {&lt;/P&gt;&lt;P&gt;                    foreach (KeyValuePair&lt;/P&gt;&lt;P&gt;        public bool IsVisible&lt;/P&gt;&lt;P&gt;        {&lt;/P&gt;&lt;P&gt;            get&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                return this.layer.IsVisible;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            set&lt;/P&gt;&lt;P&gt;            {&lt;/P&gt;&lt;P&gt;                // This call is currently throwing an AccessViolationException intermittently with Quartz 100 Release version&lt;/P&gt;&lt;P&gt;                // Forum: https://community.esri.com/thread/186308-accessviolation-when-setting-layervisible&lt;/P&gt;&lt;P&gt;                this.layer.IsVisible = value;&lt;/P&gt;&lt;P&gt;            }&lt;/P&gt;&lt;P&gt;        }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m still waiting on a way to send you the 1.5 GB raster files yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/accessviolation-when-setting-layer-visible/m-p/424090#M5130</guid>
      <dc:creator>JoshAxeen</dc:creator>
      <dc:date>2016-11-28T14:01:24Z</dc:date>
    </item>
  </channel>
</rss>

