<?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 File and Serial Port GPS Layer and KML file layer in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/file-and-serial-port-gps-layer-and-kml-file-layer/m-p/714352#M3634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have installed ArcGIS Runtime 10.1 beta 2. I am now trying to add a GPSLayer to my map. The Sample Applications got errors until I changed the decimal separator to dot in my regional settings. But now after this change I still can't get it to work in my own project. I have tried using the same data as in the Sample Applications and similar code, but I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A call to PInvoke function 'ESRI.ArcGIS.Client.Local!ESRI.ArcGIS.Client.Local.Gps.NativeMethods::GpsDriver_GetStatus' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the Serial Port GPS sample code the error is the same but with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client.Local.Gps.NativeMethods::COMPortInfo_FindGPSCOMPort'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and occurs when calling SerialPortGpsCoordinateWatcher.FindGPSEnabledPort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone who has been able to get this work? Is there anything I can do to get this error fixed? Have my ArcGIS Runtime installation failed for some parts (I had to browse for the Toolkit dll when adding the referense, it was not listed among the ESRI dll:s)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also trying to read data from a KML file with KmlLayer.SetSource, but here I haven't found any examples or help on how to do it. I don't get any errors, but no data either. When I try to read the stream CanRead is false. Anyone who can help me with this one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann-Sofie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2011 10:06:52 GMT</pubDate>
    <dc:creator>Ann-SofieSundelin</dc:creator>
    <dc:date>2011-12-20T10:06:52Z</dc:date>
    <item>
      <title>File and Serial Port GPS Layer and KML file layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/file-and-serial-port-gps-layer-and-kml-file-layer/m-p/714352#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have installed ArcGIS Runtime 10.1 beta 2. I am now trying to add a GPSLayer to my map. The Sample Applications got errors until I changed the decimal separator to dot in my regional settings. But now after this change I still can't get it to work in my own project. I have tried using the same data as in the Sample Applications and similar code, but I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A call to PInvoke function 'ESRI.ArcGIS.Client.Local!ESRI.ArcGIS.Client.Local.Gps.NativeMethods::GpsDriver_GetStatus' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the Serial Port GPS sample code the error is the same but with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGIS.Client.Local.Gps.NativeMethods::COMPortInfo_FindGPSCOMPort'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and occurs when calling SerialPortGpsCoordinateWatcher.FindGPSEnabledPort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone who has been able to get this work? Is there anything I can do to get this error fixed? Have my ArcGIS Runtime installation failed for some parts (I had to browse for the Toolkit dll when adding the referense, it was not listed among the ESRI dll:s)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also trying to read data from a KML file with KmlLayer.SetSource, but here I haven't found any examples or help on how to do it. I don't get any errors, but no data either. When I try to read the stream CanRead is false. Anyone who can help me with this one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann-Sofie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 10:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/file-and-serial-port-gps-layer-and-kml-file-layer/m-p/714352#M3634</guid>
      <dc:creator>Ann-SofieSundelin</dc:creator>
      <dc:date>2011-12-20T10:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: File and Serial Port GPS Layer and KML file layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/file-and-serial-port-gps-layer-and-kml-file-layer/m-p/714353#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies for the delay in replying. Following your post on 20th December we logged an issue and are investigating this. Unfortunately I do not have any further information at this time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 08:25:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/file-and-serial-port-gps-layer-and-kml-file-layer/m-p/714353#M3635</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2012-01-12T08:25:35Z</dc:date>
    </item>
  </channel>
</rss>

