记微信截图导致 WPF 应用卡住 窗口无法激活问题
我拿了 WPF 应用的堆栈信息如下,看起来是卡在 UXTheme.dll 上,但是不知道里面在执行什么逻辑
> user32.dll!_NtUserMessageCall@28()
user32.dll!_RealDefWindowProcW@16()
uxtheme.dll!DoMsgDefault(struct _THEME_MSG const *)
uxtheme.dll!_ThemeDefWindowProc(struct HWND__ *,unsigned int,unsigned int,long,int)
uxtheme.dll!_ThemeDefWindowProcW@16()
user32.dll!_DefWindowProcW@16()
user32.dll!_InternalCallWinProc@20()
user32.dll!_UserCallWinProcCheckWow@32()
user32.dll!_CallWindowProcAorW@24()
user32.dll!_CallWindowProcW@20()
[托管到本机的转换]
WindowsBase.dll!MS.Win32.HwndSubclass.DefWndProcWrapper(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)
[本机到托管的转换]
user32.dll!_InternalCallWinProc@20()
user32.dll!_UserCallWinProcCheckWow@32()
user32.dll!_CallWindowProcAorW@24()
user32.dll!_CallWindowProcW@20()
[托管到本机的转换]
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam)
[本机到托管的转换]
user32.dll!_InternalCallWinProc@20()
user32.dll!_UserCallWinProcCheckWow@32()
user32.dll!_DispatchClientMessage@24()
user32.dll!___fnDWORD@4()
ntdll.dll!7728013a()
[下面的框架可能不正确和/或缺失,没有为 ntdll.dll 加载符号]
[托管到本机的转换]
WindowsBase.dll!System.Windows.Threading.Dispatcher.GetMessage(ref System.Windows.Interop.MSG msg, System.IntPtr hwnd, int minMessage, int maxMessage)
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame})
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame = {System.Windows.Threading.DispatcherFrame})
WindowsBase.dll!System.Windows.Threading.Dispatcher.Run()
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore = null)
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window = null)
PresentationFramework.dll!System.Windows.Application.Run(System.Windows.Window window = null)
PresentationFramework.dll!System.Windows.Application.Run()
lindexi.dll!lindexi.Program.Main(string[] args = {string[2]})
[本机到托管的转换]
hostpolicy.dll!542463c4()
hostpolicy.dll!542465c2()
hostpolicy.dll!54246d75()
hostfxr.dll!72bf9ad3()
hostfxr.dll!72bfb909()
hostfxr.dll!72bfd594()
hostfxr.dll!72bfbc98()
hostfxr.dll!72bf6f1b()
lindexi.exe!003701ed()
lindexi.exe!0037053a()
lindexi.exe!0037166c()
kernel32.dll!765a344d()
ntdll.dll!772a9802()
ntdll.dll!772a97d5()
换成 QQ 截图没有能够复现问题,期待后续腾讯的伙伴能够帮忙修复
博客园博客只做备份,博客发布就不再更新,如果想看最新博客,请访问 https://blog.lindexi.com/
如图片看不见,请在浏览器开启不安全http内容兼容
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。欢迎转载、使用、重新发布,但务必保留文章署名[林德熙](https://www.cnblogs.com/lindexi)(包含链接:https://www.cnblogs.com/lindexi ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请与我[联系](mailto:lindexi_gd@163.com)。