avatar
h*1
1
1, 几百个文件有memory leak,怎么DEBUG?
2,main() 程序中只有 try{} catch, 但还是crush了。什么原因。
3, In which cases can the destructor of a class not be called?
avatar
h*1
2
In a try block, we allocate some memory ; then an exception is thrown.
How can we get the allocated memory released before we jump to catch block
to pr
ocess the exception?
avatar
l*o
3
1. Refer to IDE tool
2. Other part of the program throw exceptions are not handled.
3. In placement new, dtor needs to explicit called or it is not called
automatically.
4. Using smart_pointer?
avatar
l*o
4
3 If the base class's destructor is not virtual, then using a base pointer
to manipulate a derived class, the base destructor is not called. This is
another case.
avatar
h*1
5
Derived dtor is not called?

【在 l*******o 的大作中提到】
: 3 If the base class's destructor is not virtual, then using a base pointer
: to manipulate a derived class, the base destructor is not called. This is
: another case.

avatar
h*1
6
set a new handler to release allocated memory?

【在 h*****1 的大作中提到】
: In a try block, we allocate some memory ; then an exception is thrown.
: How can we get the allocated memory released before we jump to catch block
: to pr
: ocess the exception?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。