<?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: Can't Delete .vtpk file after loading in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195156#M2278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also facing the same issue. Did you get any solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2020 10:24:06 GMT</pubDate>
    <dc:creator>KavitaPandey</dc:creator>
    <dc:date>2020-06-17T10:24:06Z</dc:date>
    <item>
      <title>Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195154#M2276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on basemap control in a Xamarin Forms app targeting UWP. I am using v100.4.0. The app has the ability to load any .vtpk's and .tpk's that are in the device's My Documents folder. I want the user to be able to remove any of these .vtpk or .tpk files from the app if they would like too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently able to add/remove any .tpk's. I am also able to load and delete .vtpk's, but only as long as I don't turn that basemap on. It seems that once I load a vector tile layer, the file stays locked in memory. I have tried turning on a .vtpk and then switching to another basemap, but I still cannot delete the file. I am getting a System.IO.IOException saying "The process cannot access the file xxx.vtpk because it is being used by another process"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I am able to load a .tpk file, turn it on and off, then delete it with no problem. It just gives me that error if I try to delete a .vtpk once I have turned it on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to remove the vector tile layer from memory once I have switched to another basemap? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:31:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195154#M2276</guid>
      <dc:creator>SamuelGrosenick</dc:creator>
      <dc:date>2019-07-09T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195155#M2277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the same problem in the ArcGis Runtime SDK for .NET v100.6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 10:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195155#M2277</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-13T10:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195156#M2278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also facing the same issue. Did you get any solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2020 10:24:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195156#M2278</guid>
      <dc:creator>KavitaPandey</dc:creator>
      <dc:date>2020-06-17T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195157#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes the garbage collector can get a little lazy on cleaning up. Try forcing a GC prior to deleting:&lt;BR /&gt;GC.Collect();&lt;BR /&gt;GC.WaitForPendingFinalizers();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2020 20:46:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195157#M2279</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-06-17T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195158#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kavita, I haven't found a solution to this yet, unfortunately.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2020 21:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195158#M2280</guid>
      <dc:creator>SamuelGrosenick</dc:creator>
      <dc:date>2020-06-17T21:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195159#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Morten I did that . Put above GC force deletion code above deleting the .vtpk file but it is still giving same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 09:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195159#M2281</guid>
      <dc:creator>KavitaPandey</dc:creator>
      <dc:date>2020-09-23T09:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't Delete .vtpk file after loading</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195160#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure all references to the layer is completely out of scope (no live variables pointing to it directly or indirectly), or the GC has no effect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 19:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/can-t-delete-vtpk-file-after-loading/m-p/195160#M2282</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-09-23T19:10:08Z</dc:date>
    </item>
  </channel>
</rss>

