未处理的异常在0x523d14cf(msvcr100d.dll)? [英] Unhandled exception at 0x523d14cf (msvcr100d.dll)?

查看:109
本文介绍了未处理的异常在0x523d14cf(msvcr100d.dll)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


IntellitracTCPIP.exe中的0x523d14cf(msvcr100d.dll)未处理的异常:0xC0000005:访问冲突读取位置0x00000008。

Unhandled exception at 0x523d14cf (msvcr100d.dll) in IntellitracTCPIP.exe: 0xC0000005: Access violation reading location 0x00000008.

什么可能导致此错误?以及如何解决它

what can cause this error? and how to solve it

推荐答案

您尝试读取的地址建议您有一个由4个字节整数。您有一个指向该结构类型的指针,但该指针为null。你的程序想读第三个 - 第三个整数字段的偏移量将是8.将它添加到空指针地址0,并且你得到0x00000008。 (它可以是更小或更大类型的结构,甚至是一个数组,但我的经验告诉我4字节整数是最可能的。)

The address you're attempting to read suggests that you have a struct consisting of a number of 4-byte integers. You have a pointer to that struct type, but that pointer is null. Your program wants to read the third one — the offset of the third integer field would be 8. Add that to the null-pointer address 0, and you get 0x00000008. (It could be a struct of smaller or larger types, or even an array, but my experience tells me 4-byte integers is most likely.)

错误消息指示冒犯的代码行属于msvcr100d.dll。这不是你的代码;你可能已经传递一个空指针到一些C运行时函数。该函数假定你提供了一个有效的指针,并尝试读取结构的第三个字段,但由于该指针无效,操作系统拦截了读取尝试,并抛出异常。

The error message indicates that the offending line of code belongs to msvcr100d.dll. That's not your code; you have probably passed a null pointer to some C run-time function. That function has assumed you provided a valid pointer and attempted to read the third field of the struct, but since that pointer is not valid, the OS intercepted the read attempt and threw an exception instead.

在发生错误之前,查找程序中的最后一行代码。要做到这一点,你可以使用调用堆栈来查看你的程序为了得到它崩溃的点的函数调用链。向下移动列表,直到找到您的某个功能。你看到任何指针吗?你能保证在调用该函数时它们都有效吗?如果没有,那么你确定你应该调用该函数吗?要么确保指针有效,要么避免使用空指针调用函数。

Find the last line of code in your program before that error occurs. To do that, you can use the call stack to see the chain of function calls that your program made to get to the point it crashed. Go down the list until you find one of your functions. Do you see any pointers? Can you guarantee that they're all valid when you call that function? If not, then are you sure you're supposed to call that function? Either make sure the pointer is valid, or avoid calling the function with null pointers.

这篇关于未处理的异常在0x523d14cf(msvcr100d.dll)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆