WinCE C/C+下如何检测泄漏 运行时库?

发布于 2024-07-09 23:44:04 字数 192 浏览 7 评论 0原文

我知道使用 crtdbg.h 标头对 Win32 进行基本泄漏检测的可能性,但该标头在 CE CRT 库标头中不可用(我正在使用最新的 SDK v6.1)。

有人知道如何使用 VC 9.0 自动检测 WinCE/ARMV4I 配置中的泄漏吗? 我不想覆盖我的类层次结构的 new/delete,我更喜欢准备使用且经过测试的代码。

I know the possibilities of basic leak detection for Win32 using the crtdbg.h header, but this header is unavailable in the CE CRT library headers (i'm using the lastest SDK v6.1).

Anyone knows how I can automatically detect leaks in a WinCE/ARMV4I configuration with VC 9.0? I don't want to override new/delete for my class hierarchy, I would prefer ready to use and tested code.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

与之呼应 2024-07-16 23:44:04

在工作中(开发基于 WindowsCE 的操作系统 + 应用程序),我们创建了自己的内存管理器,大致基于 Fluid Studios Memory Manager(我使用SO找到的链接!)。 我非常确定,通过一些简单的修改,您可以将其调整为在您的平台上使用。

基本上它不会覆盖 new 和 delete,而是使用预处理器向其添加额外的报告。 然后,一旦程序退出,它就会生成内存泄漏的输出文件。

At work (developing WindowsCE based OS + Applications) we have created our own memory manager, roughly based on the Fluid Studios Memory Manager (the link which I found using SO!). I'm pretty sure with a few simple modifications you could adapt it to use on your platform.

Basically it doesn't override new and delete, but instead uses the preprocessor to add extra reporting to it. Then once the program exits it generates an output file of memory leaks.

时光倒影 2024-07-16 23:44:04

您想要使用 AppVerifierEntrek CodeSnitch。 我的运气要好得多,可以在短时间内让 CodeSnitch 正常工作。 需要注意的是,我并没有使用太多的 WinMo——主要是普通的 CE。 我相信 CodeSnitch 和较新的 WinMo 设备(Platman 与 Corecon)存在连接问题,但我也相信 Entrek 要么有测试版,要么有适用的补丁。 我的建议是致电 Entrek(不要发电子邮件,他们很忙,因此致电将是您获取信息的最快途径),只有当您发现它不起作用时,才查看 AppVerifier。

You want to use either AppVerifier or Entrek CodeSnitch. I've had much better luck getting CodeSnitch working in a short period of time. The caveat there is I don't do a whole lot of WinMo - mostly vanilla CE. I believe there are connectivity issues with CodeSnitch and newer WinMo devices (Platman versus Corecon), but I also believe that Entrek either has a beta or a patch that works for it. My recommendation would be to call Entrek (don't email, they're busy so a call will be your quickest route to info) and only if you find that it won't work, then look into AppVerifier.

爱她像谁 2024-07-16 23:44:04

我认为有一个 SourceForge 项目:

http://sourceforge.net/projects/crtdbg4wince/

如果我理解你的问题是正确的,那么它就是你正在寻找的

I think there is a SourceForge Project for this:

http://sourceforge.net/projects/crtdbg4wince/

If I understand your questin right, it is what you are looking for

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文