开发者

Dump handles of Windows process and extra information about them

开发者 https://www.devze.com 2023-02-05 14:29 出处:网络
today my application throw a \"no more handles\" error on Windows, while allocating an image. To debug this I would love to get a list of all handles my application has aquired. If possible even with

today my application throw a "no more handles" error on Windows, while allocating an image. To debug this I would love to get a list of all handles my application has aquired. If possible even with type, like font, image or whatever, and include the information in my error report to see where my appli开发者_如何学Ccation leaks.

I use Java and SWT, but have no problem with calling native functions or a third-party application to fetch the information in this case.


For a utility, try Process Explorer from Microsoft Sysinternals. This will show process strings, handles, files, parents, threads, thread stacks, etc., etc.


GDIView was the tool I needed! It is even scriptable, so the output can be used in bug reports.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号