469,926 Members | 2,082 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

InteropServices.SEHException exception when debugging

Hi guys,

I've lately been plagued with a SEHException while trying to debug VB.Net applications. I'm not exactly sure when the problem started to appear but it literally just appeared out of nowhere as debugging was working fine one day and then this error the next.

I've read plenty of posts relating to this error but they all seem outdated and they mostly seem to point to Application.EnableVisualStyles() which i do not use.

Also note that if i open a brand new solution with a blank form and try to debug that, i still get the same error. I've tried using different frameworks too (2.0, 3.0, 3.5 SP1) but the problem seems to happen with all three.

System info:
- Vista Home Premium (64-bit) w/ SP1 (6.0.6001)
- Visual Studio 2008 Professional SP1 (9.030729.1)

The error reads:
  • SEHException was unhandled
  • "External component has thrown an exception."
  • In: System.Runtime.InteropServices.SEHException
  • Error Code: -2147467259
  • Source: System.Windows.Forms
  • Stack Trace: " at System.Windows.Forms.UnsafeNativeMethods.SendMessa ge(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, IntPtr lparam)\r\n at System.Windows.Forms.Form.UpdateWindowIcon(Boolean redrawFrame)\r\n at System.Windows.Forms.Form.CreateHandle()\r\n at System.Windows.Forms.Control.get_Handle()\r\n at Microsoft.VisualStudio.HostingProcess.HostProc.Run ParkingWindowThread()\r\n at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)\r\n at System.Threading.ThreadHelper.ThreadStart()"

Needless to say I've been extremely annoyed by this error so any help is appreciated.

Thanks a million!
Sep 13 '09 #1
0 2285

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Robert Manookian | last post: by
reply views Thread by Robert Mayr | last post: by
reply views Thread by Ken Durden | last post: by
3 posts views Thread by Chris | last post: by
reply views Thread by =?Utf-8?B?VGhvbWFzIFR1dGtv?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.