<?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 C# Integration sometimes gives SEHException in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-c-integration-sometimes-gives-sehexception/m-p/245828#M6358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our company has build an integration in C# that displays a Flash component in a windows form when a button is clicked in ArcMap. Customers using the application report the follwing error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Runtime.InteropServices.SEHException: External component has thrown an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.DefWndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.DefWndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.AxHost.WndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had only limited success in reproducing the error (only on their systems, where I can change little about debugging, logging, etc...), and, given the stack trace, no clue where to even begin looking. The only similar ting I found on the web was the following thread on your old forums:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=159&amp;amp;f=1707&amp;amp;t=265242"&gt;http://forums.esri.com/Thread.asp?c=159&amp;amp;f=1707&amp;amp;t=265242&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers would be greatly appriciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Burema&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 14:10:41 GMT</pubDate>
    <dc:creator>RemcoBurema</dc:creator>
    <dc:date>2011-01-26T14:10:41Z</dc:date>
    <item>
      <title>ArcMap C# Integration sometimes gives SEHException</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-c-integration-sometimes-gives-sehexception/m-p/245828#M6358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our company has build an integration in C# that displays a Flash component in a windows form when a button is clicked in ArcMap. Customers using the application report the follwing error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.Runtime.InteropServices.SEHException: External component has thrown an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.DefWndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.DefWndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.AxHost.WndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had only limited success in reproducing the error (only on their systems, where I can change little about debugging, logging, etc...), and, given the stack trace, no clue where to even begin looking. The only similar ting I found on the web was the following thread on your old forums:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=159&amp;amp;f=1707&amp;amp;t=265242"&gt;http://forums.esri.com/Thread.asp?c=159&amp;amp;f=1707&amp;amp;t=265242&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers would be greatly appriciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Remco Burema&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 14:10:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-c-integration-sometimes-gives-sehexception/m-p/245828#M6358</guid>
      <dc:creator>RemcoBurema</dc:creator>
      <dc:date>2011-01-26T14:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcMap C# Integration sometimes gives SEHException</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-c-integration-sometimes-gives-sehexception/m-p/245829#M6359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like some unmanaged code is failing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.sehexception.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.sehexception.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not know what the underlying issue is.&amp;nbsp; I think that some unmanaged code is responding to a windows message in a less than desirable manner.&amp;nbsp; Perhaps it is whatever control you are using to display Flash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the challenges that everyone faces is debugging issues which only occur on production machines.&amp;nbsp; One thing that you can do is to try to capture the dump file and then examine it on a non-production machine using a debugger such as Visual Studio or WinDbg.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other thing that you can do is to XCopy WinDbg to the machine having the problem and debug it there.&amp;nbsp; The really cool thing about WinDbg is that it is pure XCopy, i.e. when you are done you can just delete it.&amp;nbsp; It is also free.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 22:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcmap-c-integration-sometimes-gives-sehexception/m-p/245829#M6359</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-01-26T22:04:15Z</dc:date>
    </item>
  </channel>
</rss>

