VS2010 malloc() 出错出错内容Unhandled exception at 0x77535eab (ntdll.dll) in SM2v11.exe: 0xC0000005
VS2010 malloc() 出错
出错内容Unhandled exception at 0x77535eab (ntdll.dll) in SM2v11.exe: 0xC0000005: Access violation reading location 0x00000000.
断点出问题的地方
void expand_msg(char *msg)
{
char i, j;
char *temp1;
char *temp2;
char *temp3;
temp1 = (char *)malloc(32);
temp2 = (char *)malloc(32);
temp3 = (char *)malloc(32);
/*。。。。。。。。。。。。。。。。。。。*/
free(temp1);
free(temp2);
free(temp3);
}
temp1 = (char *)malloc(32);此行执行出错
内存充足,求解释 malloc C
[解决办法]
有可能是其他地方的内存使用有问题(越界访问之类的)
[解决办法]
报错的地方很多时候都不是产生错误的地方. 更何况是报在系统的 dll 里.
