没有安装的调试器及时调试malloc的启用错误

时间:2013-06-24 12:32:22

标签: c++ debugging winapi


大家好,

我开发了一个Win32应用程序,它使用一些API收集一些系统数据。这个应用程序在除XP之外的所有Windows环境中都很好。当我通过双击运行它时,我会出现以下错误。

enter image description here

但是当我使用命令提示符执行相同的exe时,它不会显示任何内容。

以下弹出窗口的代码行,

FileContents = (char**)malloc( File_ArraSize * sizeof(char*) );     //allocating memory location..

1 个答案:

答案 0 :(得分:0)

Dependency Walker下载到XP计算机上,然后使用Dependency Walker打开您的程序。打开后,在Profile菜单中选择start profiling ...

enter image description here

看看它给你的输出。


或者,您可以将WinDbg安装到XP计算机上并调试应用程序。

Debuggers (x86)

Debuggers (x64)

相关问题