<?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 ArcMap crashes on TabbedFeatureInspector sample in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-crashes-on-tabbedfeatureinspector-sample/m-p/660232#M17718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The TabbedFeatureInspector, (VB.NET), sample crashes ArcMap when I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]1. Open ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Open map document with feature class with class extension loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Select a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Start an edit session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click the Attributes button to open the Attribute editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Click the Create Features tab.[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point the Create Features tab displays as a blank tab and ArcMap locks up. The wierd thing is that this only happens with the initial selection of a feature and opening of the Attribute editor. If you open the attribute editor, and then select a different feature before selecting the Create Feature tab ArcMap doesn't crash. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I initially found this by building a tabbed inspector into an application using the sample as the template. After discovering the problem I tried it in the TabbedFeatureInspector sample and found the same result. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The offending code appears to the be SetParent line in Inspect event where the inspector parent window is set to the groupbox on the user control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub Inspect(ByVal objects As ESRI.ArcGIS.Editor.IEnumRow, ByVal Editor As ESRI.ArcGIS.Editor.IEditor) Implements ESRI.ArcGIS.Editor.IObjectInspector.Inspect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [INDENT]SetParent(Me.m_inspector.HWND, Me.GroupBox1.Handle.ToInt32)[/INDENT] [INDENT]ShowWindow(Me.m_inspector.HWND, SW_SHOW)[/INDENT] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions on how I can correct this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2011 22:41:02 GMT</pubDate>
    <dc:creator>JeffBerry</dc:creator>
    <dc:date>2011-10-27T22:41:02Z</dc:date>
    <item>
      <title>ArcMap crashes on TabbedFeatureInspector sample</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-crashes-on-tabbedfeatureinspector-sample/m-p/660232#M17718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The TabbedFeatureInspector, (VB.NET), sample crashes ArcMap when I do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]1. Open ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Open map document with feature class with class extension loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Select a feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Start an edit session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Click the Attributes button to open the Attribute editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Click the Create Features tab.[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point the Create Features tab displays as a blank tab and ArcMap locks up. The wierd thing is that this only happens with the initial selection of a feature and opening of the Attribute editor. If you open the attribute editor, and then select a different feature before selecting the Create Feature tab ArcMap doesn't crash. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I initially found this by building a tabbed inspector into an application using the sample as the template. After discovering the problem I tried it in the TabbedFeatureInspector sample and found the same result. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The offending code appears to the be SetParent line in Inspect event where the inspector parent window is set to the groupbox on the user control.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Public Sub Inspect(ByVal objects As ESRI.ArcGIS.Editor.IEnumRow, ByVal Editor As ESRI.ArcGIS.Editor.IEditor) Implements ESRI.ArcGIS.Editor.IObjectInspector.Inspect&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [INDENT]SetParent(Me.m_inspector.HWND, Me.GroupBox1.Handle.ToInt32)[/INDENT] [INDENT]ShowWindow(Me.m_inspector.HWND, SW_SHOW)[/INDENT] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions on how I can correct this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 22:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-crashes-on-tabbedfeatureinspector-sample/m-p/660232#M17718</guid>
      <dc:creator>JeffBerry</dc:creator>
      <dc:date>2011-10-27T22:41:02Z</dc:date>
    </item>
  </channel>
</rss>

