0

我在我的调用堆栈中注意到以下内容,并想知道我需要改变哪些内容。

我正在使用ToolStrip项目单击事件来触发代码。当我尝试调试时,我发现 VS2012 经常锁定。

System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData) + 0x681 bytes

整个堆栈是

SBD.Syrius.UI.exe!SBD.Syrius.UI.Logs.LogListForm.MyActivate() 第 35 行 C# SBD.Syrius.UI.exe!SBD.Syrius.UI.MdiController.ActivateForm(SBD.Syrius.UI.baseFeature 功能, SBD.Syrius.DomainClasses.FormMode 模式)第 178 行 + 0x18 字节 C# SBD.Syrius.UI.exe!SBD.Syrius.UI.MdiController.LoadFeature(SBD.Syrius.DomainClasses.FeatureType featurenum) 第 283 行 + 0x49 字节 C# SBD .Syrius.UI.exe!SBD.Syrius.UI.Helpers.MainMenuHelper.LoadFeature(SBD.Syrius.DomainClasses.FeatureType featureType) 第 256 行 + 0x33 字节 C# SBD.Syrius.UI.exe!SBD.Syrius.UI.Helpers。 MainMenuHelper.ConfigureToolbar.AnonymousMethod__4() 第 41 行 + 0xf 字节 C# SBD.Syrius.UI.exe!SBD.Syrius.UI.Helpers.MainMenuHelper.CreateToolStripButton.AnonymousMethod__5(object s, System.EventArgs e) 第 67 行 + 0x20 字节 C# 系统.Windows.Forms.dll!System.Windows.Forms.ToolStripItem.HandleClick(System.EventArgs e) + 0xb6 字节
System.Windows.Forms.dll!System.Windows.Forms.ToolStripItem.HandleMouseUp(System.Windows.Forms.MouseEventArgs e) + 0x237 字节
System.Windows.Forms.dll!System.Windows.Forms.ToolStrip.OnMouseUp(System. Windows.Forms.MouseEventArgs mea) + 0xef bytes System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0x48b 字节 System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0xe14 字节 System.Windows.Forms.dll!System.Windows.Forms.ToolStrip。 WndProc(ref System.Windows.Forms.Message m) + 0x8c 字节
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam) + 0x14c bytes
[Native to Managed Transition]
[Managed to Native Transition ]
System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData) + 0x681 bytes
System.Windows.Forms .dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context) + 0x57c 字节
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x6f 字节
SBD.Syrius.UI.exe!SBD.Syrius.UI.Program .Main(string[] args) Line 55 + 0x9 bytes C# [Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.Runtime.Hosting.ApplicationActivator.CreateInstance(System.ActivationContext activationContext, string[] activationCustomData) + 0x66 字节 Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone() + 0x8d 字节
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback 回调, 对象状态, bool preserveSyncCtx) + 0x285 字节 mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading .ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x9 bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x57 字节
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x51 字节
[原生到托管转换]

4

0 回答 0