-----Original Message-----
"Tyler Foreman" <ty***********@icommm.com> schrieb >What does the callstack show when the error occurs?
The callstack shows the following:
<Non-user Code>
Myapp.exe!Myapp.Form1.Main() Line 6 + 0x1d bytes
Also, I seem to be able to make it occur more
frequently in the IDE when I set a breakpoint in one of my
subforms. When I open the subform then close it and
reactivate the main form (Form1), I can get the error
to occur pretty consistently. It seems very strange to
me.
Could you please expand the <Non-user Code>? There's an
option whenright-clicking in the callstack window.
--
Armin
.
Hi,
Thanks for your response. Here is the expanded non-user
code:
system.windows.forms.dll!
System.Windows.Forms.Control.PaintWithErrorHandlin g
(System.Windows.Forms.PaintEventArgs e = {ClipRectangle=
{X=0 Y=0 Width=316 Height=236}}, short layer = 2, bool
disposeEventArgs = false) + 0xee bytes
system.windows.forms.dll!
System.Windows.Forms.Control.WmPaint
(System.Windows.Forms.Message m =
{System.Windows.Forms.Message}) + 0x2ff bytes
system.windows.forms.dll!
System.Windows.Forms.Control.WndProc
(System.Windows.Forms.Message m =
{System.Windows.Forms.Message}) + 0x2d6 bytes
system.windows.forms.dll!ControlNativeWindow.OnMes sage
(System.Windows.Forms.Message m =
{System.Windows.Forms.Message}) + 0x13 bytes
system.windows.forms.dll!ControlNativeWindow.WndPr oc
(System.Windows.Forms.Message m =
{System.Windows.Forms.Message}) + 0xda bytes
system.windows.forms.dll!
System.Windows.Forms.NativeWindow.DebuggableCallba ck(int
hWnd = 264694, int msg = 15, int wparam = 0, int lparam =
0) + 0x3d bytes
system.windows.forms.dll!
System.Windows.Forms.Application.ComponentManager. System.W
indows.Forms.UnsafeNativeMethods+IMsoComponentMana ger.FPus
hMessageLoop(int dwComponentID = 1, int reason = -1, int
pvLoopData = 0) + 0x349 bytes
system.windows.forms.dll!ThreadContext.RunMessageL oopInner
(int reason = -1, System.Windows.Forms.ApplicationContext
context = {System.Windows.Forms.ApplicationContext}) +
0x1f3 bytes
system.windows.forms.dll!ThreadContext.RunMessageL oop(int
reason = -1, System.Windows.Forms.ApplicationContext
context = {System.Windows.Forms.ApplicationContext}) +
0x50 bytes
system.windows.forms.dll!
System.Windows.Forms.Application.Run
(System.Windows.Forms.Form mainForm = {MYAPP.Form1}) +
0x34 bytes
MYAPP.exe!MYAPP.Form1.Main() Line 6 + 0x1d bytes Basic
Sorry that it is so unreadable, but this textbox doesn't
offer much in the way of formatting.
Thanks,
Tyler Foreman