memory access violation error - 0xC0000005
- by nobody
I got memory access violation error sometimes....
but I don't know where the error comes from...
So I reviewed the code and I found some strange code...
delete m_p1;
A *a = new A();
a->b = *c;
m_p1 = a; --> strange code.
I think it's a little strange line.... can i use the m_p1 after delete the m_p1?
It can make some memory access error??