c# Programming Glossary: m_aobject
Is the destructor called if the constructor throws an exception? http://stackoverflow.com/questions/188693/is-the-destructor-called-if-the-constructor-throws-an-exception example struct Class Class ~Class Thing m_pThing Object m_aObject Gizmo m_pGizmo Data m_aData Class Class this m_pThing new Thing.. this m_pGizmo new Gizmo The order of creation will be m_aObject will have its constructor called. m_aData will have its constructor.. Some possible cases Should m_aData throw at construction m_aObject will have its destructor called. Then the memory allocated by..
|