D
DaveP
I am having a problem in a .NET 2.0 / Visual Studio 2003 application. Most
of the time, the app works fine. But occasionally, I get to the point where
I execute this code:
frmPolStatus.Refresh()
frmPolStatus.ShowDialog()
...
The application hangs up on the ShowDialog method for this Windows form.
When I look at the stack, I get the following information:
system.windows.forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(int dwComponentID = 1, int reason = 4, int pvLoopData = 0) + 0x49d bytes
system.windows.forms.dll!ThreadContext.RunMessageLoopInner(int reason = 4,
System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.Application.ModalApplicationContext}) + 0x1f3 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoop(int reason = 4,
System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.Application.ModalApplicationContext}) + 0x50 bytes
system.windows.forms.dll!System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form form = {chubb.csi.express.common.frmPolStatus}) + 0x34 bytes
system.windows.forms.dll!System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window owner = <undefined value>) + 0x6ab bytes
system.windows.forms.dll!System.Windows.Forms.Form.ShowDialog() + 0xe bytes
Like I said, this code works fine most of the time. I just can't explain
why it's happening sometimes. Any suggestions would be appreciated.
Thanks!
Dave P.
of the time, the app works fine. But occasionally, I get to the point where
I execute this code:
frmPolStatus.Refresh()
frmPolStatus.ShowDialog()
...
The application hangs up on the ShowDialog method for this Windows form.
When I look at the stack, I get the following information:
system.windows.forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(int dwComponentID = 1, int reason = 4, int pvLoopData = 0) + 0x49d bytes
system.windows.forms.dll!ThreadContext.RunMessageLoopInner(int reason = 4,
System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.Application.ModalApplicationContext}) + 0x1f3 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoop(int reason = 4,
System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.Application.ModalApplicationContext}) + 0x50 bytes
system.windows.forms.dll!System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form form = {chubb.csi.express.common.frmPolStatus}) + 0x34 bytes
system.windows.forms.dll!System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window owner = <undefined value>) + 0x6ab bytes
system.windows.forms.dll!System.Windows.Forms.Form.ShowDialog() + 0xe bytes
Like I said, this code works fine most of the time. I just can't explain
why it's happening sometimes. Any suggestions would be appreciated.
Thanks!
Dave P.