English 中文(简体)
我如何使用“涂鸦”来检测mods以释放区块?
原标题:How do I use "scribbling" to detect mods to free blocks?

我正试图弄清楚是什么破坏了我的堆;我相信你羡慕我和我的困境。

SO告诉我,我可以打开“Scrible”将0xAA写入分配,将0x55写入解除分配,以帮助我找出哪里出了问题

唯一的问题是,我不知道在哪里/如何好好利用它我用这个做什么

(额外的好处:我很好奇为什么会使用这些值…)

我正在使用openFrameworks和Vamp心理声学标记库在Xcode中编写C/C++,但我认为我的问题比这更一般。

问题回答
  1. 运行manGuard_Moloc或man-libgmalloc并阅读有关调试选项的信息。

  2. 请参阅valgrind,也许从http://valgrind.org/downloads/current.html





相关问题
Windows Mobile 6 Emulator change storage?

How do i change the size of the Windows Mobile 6 Emulator. Its fixed at 32mb. I read this post: Increasing Windows Mobile 5 Emulator Storage But it only helps for the 5.0 version. Isnt there any way ...

CUDA Memory Allocation accessible for both host and device

I m trying to figure out a way to allocate a block of memory that is accessible by both the host (CPU) and device (GPU). Other than using cudaHostAlloc() function to allocate page-locked memory that ...

RAM memory reallocation - Windows and Linux

I am working on a project involving optimizing energy consumption within a system. Part of that project consists in allocating RAM memory based on locality, that is allocating memory segments for a ...

Should I send retain or autorelease before returning objects?

I thought I was doing the right thing here but I get several warnings from the Build and Analyze so now I m not so sure. My assumption is (a) that an object I get from a function (dateFromComponents: ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

doubts regarding Memory management in .net

I m learning about Memory management in C# from the book "Professional C#" The presence of the garbage collector means that you will usually not worry about objects that you no longer need; ...

Objective-C returning alloc d memory in a function == bad?

This is on the iPhone. So what if I have a function like - (SomeObject*)buildObject; Do I need to pass in a variable that I have already alloc d outside like - (void)assignObject(SomeObject** out);...

热门标签