Exception Error c0000005 in VC++

后端 未结 1 1321
北海茫月
北海茫月 2020-12-06 17:05

Am working on VC++ Console Application.

This application sends a file from Appdata\\Roaming folder for a period of time.

What happens is am getting this Cras

相关标签:
1条回答
  • 2020-12-06 17:29

    Exception code c0000005 is the code for an access violation. That means that your program is accessing (either reading or writing) a memory address to which it does not have rights. Most commonly this is caused by:

    • Accessing a stale pointer. That is accessing memory that has already been deallocated. Note that such stale pointer accesses do not always result in access violations. Only if the memory manager has returned the memory to the system do you get an access violation.
    • Reading off the end of an array. This is when you have an array of length N and you access elements with index >=N.

    To solve the problem you'll need to do some debugging. If you are not in a position to get the fault to occur under your debugger on your development machine you should get a crash dump file and load it into your debugger. This will allow you to see where in the code the problem occurred and hopefully lead you to the solution. You'll need to have the debugging symbols associated with the executable in order to see meaningful stack traces.

    0 讨论(0)
提交回复
热议问题