C0000005 exception error in VC ++

I am working on a VC ++ console application.

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

What happens, I get this Crash error:

Problem signature: Problem Event Name: APPCRASH Application Name: App.exe Application Version: 1.0.0.2 Application Timestamp: 51c02fa8 Fault Module Name: PCMeter.exe Fault Module Version: 1.0.0.2 Fault Module Timestamp: 51c02fa8 Exception Code: c0000005 Exception Offset: 000069eb OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033 Additional Information 1: 0a9e Additional Information 2: 0a9e372d3b4ad19135b953a78882e789 Additional Information 3: 0a9e Additional Information 4: 0a9e372d3b4ad19135b953a78882e789 

Can someone help me solve this problem?

+6
source share
1 answer

Exception code c0000005 is an access violation code. This means that your program is accessing (reading or writing) a memory address to which it does not have rights. This is most often caused by:

  • Access to an obsolete pointer. This is access to memory that has already been freed. Please note that such obsolete accesses to pointers do not always result in access violations. Only if the memory manager returned the memory to the system, do you get an access violation.
  • Read the end of an array. This is when you have an array of length N and you get access to elements with index >=N

To solve the problem, you need to do some debugging. If you are not able to get an error in your debugger on your development machine, you should get an emergency dump file and load it into your debugger. This will allow you to see where the problem occurred in the code, and hopefully leads you to a solution. You will need to have debugging symbols associated with the executable to see meaningful stack traces.

+25
source

Source: https://habr.com/ru/post/947548/


All Articles