Exception on member access
gamedev.net
Hello!Please help in investigating possibly strange behavior:class CBase{ FooDerived@ m_nDerived1 = FooDerived(); // This works FooDerived@ m_nDerived2; CBase() { FooDerived@ derived = FooDerived(); // This works m_nDerived2 = FooDerived(); // This is causing exception }};CBase base;Compilation of this example yields error:Exception 'Null pointer access' in 'CBase::C
0 التعليقات ·0 المشاركات ·10 مشاهدة