English 中文(简体)
窗户是否有一个简单的记忆夸大,可以(a) 免费,(b) 工作?
原标题:Is there a simple memory debugger for windows that (a) is free and (b) works?

我试图在一个大型项目中解冻一个微妙的记忆问题。 数周过去了,我仍然找不到。 我的方案在一段时间内随机坠毁。 因此,我一直试图获得记忆的夸张。 这里是我考虑/提出的选择:

  • 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大会?

问题回答

视觉演播室包括在C图书馆的剪辑版本中发现记忆泄漏。 见,关于MSDN的信息网页。

但你看不出,坠毁是由于记忆泄露造成的。 事实上,记忆泄露通常会造成坠毁(除非系统完全失传而发生坠毁)。 你可能非常泄露,但可能与坠毁无关。

你们是否试图看一看五舍五入失事? 很多时候,你会想到你面临什么样的问题。 如果你坠毁,我怀疑你更可能破坏记忆,例如,写过去一个已分配的记忆组的结束,或者在释放后使用记忆。

本条对如何处理记忆问题有一些想法,

Good luck.

也许Gdb和Valgrind被送往Windows?

如果您的申请并不具体针对窗口,或使用在视窗和北纬度上港的图书馆(如Qt),那么你可能会考虑将其分解成欧诺。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签