It is useful to help me to check the nullpoint for debugging.And I found a bad report for member variable in my class;Eg: A::func1() { if(m_p!=NULL){} } A::func2(){ m_p->fun();//Error } .And I'm sure that func1 is called before func2.Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is useful to help me to check the nullpoint for debugging.And I found a bad report for member variable in my class;Eg: A::func1() { if(m_p!=NULL){} } A::func2(){ m_p->fun();//Error } .And I'm sure that func1 is called before func2.Thanks.