<?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: ISnappingEnvironment - ArcMap crash in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218438#M5657</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;SPAN&gt;You're right. I've checked that in run time m_SnappingEnv was Nothing. Changing to FindExtensionByCLSID resolved the issue. It seems that it had nothing to do with x86 / CPU, rather it was ArcGIS settings (?), i.e. on one machine "ESRI Snapping" was already activated and could be called by name, on another it had to be called by its ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2011 10:20:38 GMT</pubDate>
    <dc:creator>JanBurdziej1</dc:creator>
    <dc:date>2011-04-25T10:20:38Z</dc:date>
    <item>
      <title>ISnappingEnvironment - ArcMap crash</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218436#M5655</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;SPAN&gt;I have a tool which uses ISnappingEnvironment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;m_SnappingEnv = TryCast(My.ArcMap.Application.FindExtensionByName("ESRI Snapping"), ISnappingEnvironment)
m_Snapper = m_SnappingEnv.PointSnapper
m_SnappingFeedback = New SnappingFeedbackClass()
m_SnappingFeedback.Initialize(Hook, m_SnappingEnv, True)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine at Windows XP but crashes (at line m_Snapper = m_SnappingEnv.PointSnapper) on another machine (with Win 7 and x86 CPU).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas what is the reason? There is no error, just ArcMap crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 13:29:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218436#M5655</guid>
      <dc:creator>JanBurdziej1</dc:creator>
      <dc:date>2011-04-20T13:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: ISnappingEnvironment - ArcMap crash</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218437#M5656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw another report of someone having a similar issue. For them finding the extension with the following made the difference. Please try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; Dim snapper As IExtension
&amp;nbsp;&amp;nbsp; Dim snapperID As UID = New UIDClass&amp;nbsp; 
&amp;nbsp;&amp;nbsp; snapperID.Value = "esriControls.Snapping"&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; snapper= app.FindExtensionByCLSID(snapperID)
&amp;nbsp;&amp;nbsp; m_SnappingEnv = TryCast(snapper, ISnappingEnvironment)
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218437#M5656</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2021-12-11T10:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: ISnappingEnvironment - ArcMap crash</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218438#M5657</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;SPAN&gt;You're right. I've checked that in run time m_SnappingEnv was Nothing. Changing to FindExtensionByCLSID resolved the issue. It seems that it had nothing to do with x86 / CPU, rather it was ArcGIS settings (?), i.e. on one machine "ESRI Snapping" was already activated and could be called by name, on another it had to be called by its ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 10:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/isnappingenvironment-arcmap-crash/m-p/218438#M5657</guid>
      <dc:creator>JanBurdziej1</dc:creator>
      <dc:date>2011-04-25T10:20:38Z</dc:date>
    </item>
  </channel>
</rss>

