Unhandled exception: 0xc0000005: access violation while reading location 0x00000000

Unhandled exception: 0xC0000005: Access conflict occurred while reading position 0x00000000

In the process of using, there was a mistake in the title, first of all, I searched some methods on the Internet, and finally solved it with a lot of effort.
About 0xC0000005:
0xC0000005: Access Cheesecake error debug —
1 “data out of bounds or defined pointer not freed.
2: Null Pointers are most likely. It is best to explicitly assign values before using Pointers!
should be a pointer problem
3 “memory access error, check the pointer, whether empty, whether out of bounds, etc

1:
ar *p;
p = new char[number];
delete [] p;

// always using p….
p = XXX;// access violation

2:
char * p;
memcpy (p, XXX, number); // Access Cheesecake
char *p;
p = new char[number];
delete [] p;

delete [] p;// the access violation
http://hi.baidu.com/yuruntsinghua/item/61dfa34e89809793823ae14d

Read More: