PunCha

导航

2008年6月3日 #

What happend: Exception throws in the .ctor()?

摘要: 1. If an exception was thrown in a type's .ctor(), then the class's destrutor wouldn't be called.2. If a exception was catched in a try-catch block, a... 阅读全文

posted @ 2008-06-03 16:12 PunCha 阅读(167) 评论(0) 推荐(0)

Compiler Warning C4150: deletion of pointer to incomplete type 'XXX'; no destructor called

摘要: Look at the following codes:// C4150.cpp// compile with: /W2class IncClass;void NoDestruct( IncClass* pIncClass ){ delete pIncClass;} // C4150, def... 阅读全文

posted @ 2008-06-03 15:24 PunCha 阅读(279) 评论(0) 推荐(0)