memory access violation error - 0xC0000005
Posted
by nobody
on Stack Overflow
See other posts from Stack Overflow
or by nobody
Published on 2010-06-12T08:56:35Z
Indexed on
2010/06/12
9:02 UTC
Read the original article
Hit count: 137
c++
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??
© Stack Overflow or respective owner