The error is as follows:
Error cause:
There’s a section in the program called cout <; < string; //char string[] But didn't notice that string can also be NULL, This leads to errors. Error analysis: When string is a null pointer, cout calls strlen to get the length of the string before printing it. So you need to access the null pointer (that is, the memory address of 0), and once the program accesses this memory, the system raises an exception, thus reporting an error.
Error cause:
There’s a section in the program called cout <; < string; //char string[] But didn't notice that string can also be NULL, This leads to errors. Error analysis: When string is a null pointer, cout calls strlen to get the length of the string before printing it. So you need to access the null pointer (that is, the memory address of 0), and once the program accesses this memory, the system raises an exception, thus reporting an error.
Read More:
- 0xc0000005: an access conflict occurred while reading location 0x00000020
- Opencv: 0xc0000005: an access conflict occurred while reading location 0x0000000010
- There is an unhandled exception at: 0xc0000005: an access conflict occurred while reading location 0x00000000.
- Three possibilities of “unhandled exception: 0xc0000005: access conflict when reading location 0x00000000”
- VC + + COM programming error of 0xc0000005: access conflict when reading location 0xfeefef6
- C language problem: 0xc0000005: access conflict occurred when writing to location 0xffffcc.
- Unhandled exception: 0xc0000005: access violation while reading location 0x00000000
- 0xc0000005: solution to access conflict when writing to location 0x00000000
- C / C + + error handling (document): unhandled exception: 0xc0000005: access violation while reading location 0x00000000
- [debug notes] pointer error when STD:: vector is used in VTK “access conflict when reading location XXX”
- Unhandled exception at 0x00000000: 0xc0000005: access violation at position 0x0000000000
- Memory error unhandled exception: 0xc0000005: read location: 0x00000
- [Java] Java program error: exception_ ACCESS_ VIOLATION (0xc0000005)
- Dxly solves the fatal error of AutoCAD2006: unhandled access violation reading 0x0000 exception at 6532b0h.
- A first chance exception of type ‘ System.NullReferenceException ‘when occurred, you did encounter a bug
- Android dependency conflict resolution
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- [details] jar conflict resolution in Maven (personal test)
- Elasticsearch6. X invalid time range query bug
- Running program encountered Error:Access violation at 0x**(tried to write to 0x**) program terminated