如何处理可能导致我的应用程序进入挂起状态的事件

编程入门 行业动态 更新时间:2024-10-28 16:25:52
本文介绍了如何处理可能导致我的应用程序进入挂起状态的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在对应用程序挂起问题进行转储文件分析.这是堆栈跟踪中有趣的一行.

I am doing a dump file analyis for an application hang problem. Here is one interesting line from the stack trace.

0bc2f3e4 75a8bd1e 0bc2f298 0bc2f30c 00000001 ntdll!KiFastSystemCallRet
0bc2f32a 6a393c42 00000001 7ffdf000 00000001 kernel32!WaitForMultipleObjectsEx+0x8e

查看 WaitForMultipleObjectExMSDN中的描述,第二个参数是const HANDLE *lpHandles.这让我觉得我应该能够做一个 !handle 7ffdf000 来找出它在等待哪个事件,但是当我这样做时,我得到了关注

Looking at WaitForMultipleObjectEx description in MSDN, the second parameter is const HANDLE *lpHandles. This make me thing that I should be able to do a !handle 7ffdf000 to figure out which event is it waiting for but when I do that, I get following

检索类型时出现类型错误

Type Error retrieving type

任何想法我在这里可能做错了什么,或者关于获取有关挂起原因的更多详细信息的任何提示?

Any ideas what I may be doing wrong here or any tips on getting more details on cause of hang?

推荐答案

第二个参数是指向 HANDLE 数组的指针.在您的情况下,由于数组的大小为 1,您应该能够使用 command
转储句柄!handle poi 7ffdf000

The second parameter is pointer to array of HANDLE's. In your case, since the size of array is 1, you should be able to dump the handle using command
!handle poi 7ffdf000

这篇关于如何处理可能导致我的应用程序进入挂起状态的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 23:35:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1124936.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何处理   应用程序   挂起   状态   事件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!