我试图在一个大型项目中解冻一个微妙的记忆问题。 数周过去了,我仍然找不到。 我的方案在一段时间内随机坠毁。 因此,我一直试图获得记忆的夸张。 这里是我考虑/提出的选择:
- IBM Purify - successfully detects memory leak but asks for me to pay money to find out where it is
- Valgrind - I ve heard good things about this program but it s for Linux and I d have to port my entire project over
- MPatrol - again it s mainly for linux. The windows version is for MingGW and I m using Visual Studio. I found binaries for VC++ online and followed the instructions there but the program refused to output any log files.
- Application Verifier - throws a random break point at start, asks for a nonexistent source file (sdk.cpp) in Visual Studio, and then gives this error every time, no matter what exe I attach it to: "First chance access violation for current stack trace"
- WinDbg - I don t even know if this program does what I think it does. Always gives "ERROR: Symbol file could not be found." And it doesn t seem to do anything when I run my exe.
I ve searched for all these errors on Google for hours to no avail. The respective documentation on these packages don t seem to have info on my particular issues. Is there any debugger out there that works? Do I really have to port my program over to Linux? Can anyone point me in the direction of good documentation regarding memory debugging? Any help would be greatly appreciated. Thanks in advance!
Edit:
感谢所有答复。 我认识到,坠毁问题可能不是一个记忆泄露问题。 之后,它只是冻结。 没有任何错误的信息。 通常在撰写本报告时发生。 因此,我看到的是某种腐败。 我猜测一下视觉演播室的更深入的特点。 实际上,利用“紫 Pur”案的审判发现了几处ug子,但我不想为整个版本预约1 600美元。 最糟糕的情况情景一把它拖到了北草坪。 再次感谢这一帮助。
Edit 2:
在对紫外线进行更多测试之后,我的方案似乎没有发现更多的记忆错误。 我注意到,在我点击时,如在指挥部门,方案冻结。 因此,我会认为,这并不是我守则的问题,而是它与选择案文互动的方式。 (Edit 2a:甄选应做到facepalm) 再次感谢大家的帮助。
就未来而言,我到哪里去了解更复杂的偷窃情况? 我使用了耳光和观察口语,但在学校,他们只教授语言本身。 我是否需要学习X86大会?