<?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: CreateMarker() NULL exception trown in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248595#M1572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;On your dev machine what happens if you check the file exists first e.g. System.IO.File.Exists() or create a new in memory BitMap from the file on disk before using in the CreateMarker method?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, so I tried what you said and the problem still happens. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if(System.IO.File.Exists(path))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trkSymbol = Symbol.CreateMarker(path);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is returning true but yet does not create the marker from the path.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 16:46:31 GMT</pubDate>
    <dc:creator>RobHaynes</dc:creator>
    <dc:date>2010-09-22T16:46:31Z</dc:date>
    <item>
      <title>CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248589#M1566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a weird problem when using the CreateMarker(bmp) method. It seems an exception is getting thrown somewhere in the mscore.lib. Its not the bitmap that is bad. It was working perfectly fine and then out of nowhere it stopped. Anyone else run into this or know what might have happened.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 16:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248589#M1566</guid>
      <dc:creator>RobHaynes</dc:creator>
      <dc:date>2010-09-08T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248590#M1567</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;If you can post a snippet of your code I'll take a look. Is this version 1500?&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, 09 Sep 2010 07:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248590#M1567</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2010-09-09T07:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248591#M1568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm pretty sure its not the code because it works fine on other machines. But here is how I am using the function: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;trkSymbol = Symbol.CreateMarker(path);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where path is a string that contains the location of the file. I verified that the path is correct. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:24:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248591#M1568</guid>
      <dc:creator>RobHaynes</dc:creator>
      <dc:date>2010-09-17T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248592#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm pretty sure its not the code because it works fine on other machines. But here is how I am using the function: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;trkSymbol = Symbol.CreateMarker(path);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where path is a string that contains the location of the file. I verified that the path is correct. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248592#M1569</guid>
      <dc:creator>RobHaynes</dc:creator>
      <dc:date>2010-09-17T17:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248593#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Same thing happens w/ 1200 and 1500.&amp;nbsp; And the weird thing is, it doesn't happen on 3 or 4 other machines, just my development machine.&amp;nbsp; Its like an extra "something" is happening on my machine that fails, but the extra thing doesn't happen.&amp;nbsp; Is there a setting somewhere for the .bmp file path that is somehow failing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;If you can post a snippet of your code I'll take a look. Is this version 1500?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 17:36:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248593#M1570</guid>
      <dc:creator>RobHaynes</dc:creator>
      <dc:date>2010-09-17T17:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248594#M1571</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;On your dev machine what happens if you check the file exists first e.g. System.IO.File.Exists() or create a new in memory BitMap from the file on disk before using in the CreateMarker method?&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>Mon, 20 Sep 2010 08:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248594#M1571</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2010-09-20T08:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248595#M1572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;On your dev machine what happens if you check the file exists first e.g. System.IO.File.Exists() or create a new in memory BitMap from the file on disk before using in the CreateMarker method?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, so I tried what you said and the problem still happens. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if(System.IO.File.Exists(path))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trkSymbol = Symbol.CreateMarker(path);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is returning true but yet does not create the marker from the path.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 16:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248595#M1572</guid>
      <dc:creator>RobHaynes</dc:creator>
      <dc:date>2010-09-22T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: CreateMarker() NULL exception trown</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248596#M1573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's strange - presumably it still works on your other test machines?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about creating an in memory Bitmap first? e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bitmap bitmap = new Bitmap(@"C:\ronnie.bmp");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Graphic g = new Graphic(new ESRI.ArcGISExplorer.Geometry.Point(-0.9, 52));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;g.Symbol = Symbol.CreateMarker(bitmap);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note n = new Note("Test Marker", g);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map.ChildItems.Add(n);&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, 23 Sep 2010 08:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/createmarker-null-exception-trown/m-p/248596#M1573</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2010-09-23T08:13:16Z</dc:date>
    </item>
  </channel>
</rss>

