I'm developing a WindowsApp using VB.NET under .NET 1.1.
Development and target OS is W2K SP4. Everything is
running fine in W2K but when I try to run under XP some
strange things happens when closing the application
dialogs. A SEHException is thrown somewhere where I
cannot catch it, the only place to catch it is where the
call to Application.Run() is done.
During earlier stage of the development the app was
running fine in XP, I also has turned on the XP
VisualStyle. But now it doesn't work on XP! Why? Is there
anyone that have a clue?

Here is me exception trace:
System.Runtime.InteropServices.SEHException

Message = External component has thrown an exception.
Class = System.Windows.Forms.UnsafeNativeMethods
Method = DispatchMessageW

at
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW
(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms
.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at
System.Windows.Forms.ThreadContext.RunMessageLoopInner
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop
(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MyApp.Application.Main..ctor() in
C:\MyApp\Application\Main.vb:line 37

Re: SEHException when running on XP by Daniel

Daniel
Thu Nov 27 13:35:40 CST 2003

Hi Lars. I'm having exactly the same problem. Just want to say that if you
find something, please share it with us.

"Lars Jonson" <lars.jonson@swipnet.se> wrote in message
news:083001c3b4bd$8e6b4840$a401280a@phx.gbl...
> I'm developing a WindowsApp using VB.NET under .NET 1.1.
> Development and target OS is W2K SP4. Everything is
> running fine in W2K but when I try to run under XP some
> strange things happens when closing the application
> dialogs. A SEHException is thrown somewhere where I
> cannot catch it, the only place to catch it is where the
> call to Application.Run() is done.
> During earlier stage of the development the app was
> running fine in XP, I also has turned on the XP
> VisualStyle. But now it doesn't work on XP! Why? Is there
> anyone that have a clue?
>
> Here is me exception trace:
> System.Runtime.InteropServices.SEHException
>
> Message = External component has thrown an exception.
> Class = System.Windows.Forms.UnsafeNativeMethods
> Method = DispatchMessageW
>
> at
> System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW
> (MSG& msg)
> at
> System.Windows.Forms.ComponentManager.System.Windows.Forms
> .UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop
> (Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
> at
> System.Windows.Forms.ThreadContext.RunMessageLoopInner
> (Int32 reason, ApplicationContext context)
> at System.Windows.Forms.ThreadContext.RunMessageLoop
> (Int32 reason, ApplicationContext context)
> at System.Windows.Forms.Application.Run(Form mainForm)
> at MyApp.Application.Main..ctor() in
> C:\MyApp\Application\Main.vb:line 37
>



Re: SEHException when running on XP by Daniel

Daniel
Thu Nov 27 16:47:23 CST 2003

Take a look at that link:

http://www.hanselman.com/blog/PermaLink.aspx?guid=36187116-fbe3-4959-af04-c0
c9e42479a5