this is what i get with "Just my code disabled" :
--------------------------------------
[Managed to Native Transition]
[quoted text, click to view] > some_method(System.Windows.Forms.Button btn = {Text = Cannot evaluate
> expression because a native frame is on top of the call stack.}) Line 377
> + 0x1f bytes C#
some_method(string text = "50 x 50") Line 346 + 0x9 bytes C#
some_method(object sender = {System.Windows.Forms.TabControl},
System.EventArgs e = {System.EventArgs}) Line 233 + 0x3c bytes C#
System.Windows.Forms.dll!System.Windows.Forms.TabControl.OnSelectedIndexChanged(System.EventArgs
e) + 0x76 bytes
System.Windows.Forms.dll!System.Windows.Forms.TabControl.WmSelChange() +
0xd9 bytes
System.Windows.Forms.dll!System.Windows.Forms.TabControl.WndProc(ref
System.Windows.Forms.Message m = {System.Windows.Forms.Message}) + 0x129
bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref
System.Windows.Forms.Message m) + 0xd bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref
System.Windows.Forms.Message m) + 0xd6 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr
hWnd, int msg = 8270, System.IntPtr wparam, System.IntPtr lparam) + 0x75
bytes
[Native to Managed Transition]
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.Control.SendMessage(int msg,
System.IntPtr wparam, System.IntPtr lparam) + 0x3d bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ReflectMessageInternal(System.IntPtr
hWnd, ref System.Windows.Forms.Message m = {System.Windows.Forms.Message}) +
0x3e bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmNotify(ref
System.Windows.Forms.Message m = {System.Windows.Forms.Message}) + 0x2e
bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref
System.Windows.Forms.Message m) + 0x6a6 bytes
System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.WndProc(ref
System.Windows.Forms.Message m) + 0x45 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref
System.Windows.Forms.Message m) + 0xd bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref
System.Windows.Forms.Message m) + 0xd6 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr
hWnd, int msg = 78, System.IntPtr wparam, System.IntPtr lparam) + 0x75 bytes
[Native to Managed Transition]
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DefWndProc(ref
System.Windows.Forms.Message m = {System.Windows.Forms.Message}) + 0x94
bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.DefWndProc(ref
System.Windows.Forms.Message m) + 0xc bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseDown(ref
System.Windows.Forms.Message m = {System.Windows.Forms.Message},
System.Windows.Forms.MouseButtons button = Left, int clicks = 1) + 0xf5
bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref
System.Windows.Forms.Message m) + 0x52d bytes
System.Windows.Forms.dll!System.Windows.Forms.TabControl.WndProc(ref
System.Windows.Forms.Message m) + 0x1f2 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref
System.Windows.Forms.Message m) + 0xd bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref
System.Windows.Forms.Message m) + 0xd6 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr
hWnd, int msg = 513, System.IntPtr wparam, System.IntPtr lparam) + 0x75
bytes
[Native to Managed Transition]
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int
dwComponentID, int reason = -1, int pvLoopData = 0) + 0x2ea bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int
reason = -1, System.Windows.Forms.ApplicationContext context =
{System.Windows.Forms.ApplicationContext}) + 0x17d bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int
reason, System.Windows.Forms.ApplicationContext context) + 0x53 bytes
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form
mainForm) + 0x2e bytes
Main() Line 21 + 0x1a bytes C#
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile,
System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x32
bytes
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
+ 0x2b bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object
state) + 0x3b bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext
executionContext, System.Threading.ContextCallback callback, object state) +
0x81 bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x40 bytes
-----------------------------------------
I never worked with Windbg so i didn't figure it out how to check that
thread that is displayed by WinDbg is the one that shows the message?
this is what i get when i execute commands that you said (default thread
displayed) :
*** wait with pending attach
Symbol search path is:
SRV*c:\symbols*
http://msdl.microsoft.com/download/symbols Executable search path is:
WARNING: Process 3644 is not attached as a debuggee
The process can be examined but debug events will not be received
..........................................................................
Loading unloaded module list
.....
(e3c.b18): Wake debugger - code 80000007 (first chance)
eax=00000000 ebx=0012f4cc ecx=00185c00 edx=0012f2e0 esi=00000000
edi=7ffd7000
eip=7c90eb94 esp=0012f4a4 ebp=0012f540 iopl=0 nv up ei pl zr na pe
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000246
ntdll!KiFastSystemCallRet:
7c90eb94 c3 ret
0:000> .symfix c:\symbols
0:000> .reload
Reloading current modules
...........................................................................
0:000> .loadby sos mscorwks
0:000> !threads
ThreadCount: 10
UnstartedThread: 0
BackgroundThread: 6
PendingThread: 0
DeadThread: 2
Hosted Runtime: no
PreEmptive GC Alloc Lock
ID OSID ThreadOBJ State GC Context Domain Count
APT Exception
0 1 b18 00185c00 201a228 Enabled 00000000:00000000 00149648 0
MTA
2 2 654 0018f340 b228 Enabled 00000000:00000000 00149648 0
MTA (Finalizer)