delete static object
来源:互联网 发布:python restful框架 编辑:程序博客网 时间:2024/05/17 07:49
If the data is static, it isn't allocated on the heap, and it will be destructed during the shutdown of the process.If it is a pointer to the data which is static, e.g.:
Something* MyClass::aPointer = new Something;
Then like all other dynamically allocated data, it will only be destructed when you delete it. There are two frequent solutions:use a smart pointer, which has a destructor which deletes it, ordon't delete it; in most cases, there's really no reason to call the destructor, and if you happen to use the instance in the destructors of other static objects, you'll run into an order of destruction problem.
- delete static object
- static new delete关键字
- local static object demo
- C++ Global(static) Object - Problems
- Object C中static关键字
- 11.关键字--final,static,object
- Notice:Delete the Object you have created
- OAF—Entity Object 之 Delete Data
- 关于C#中的lock object 、lock this 、 lock static object
- object-c的静态变量(static)
- static function FindObjectsOfType (type : Type) : Object[]
- 关键字 构造函数 this static final Object
- C++中关于静态对象的使用( local static object and global static object)
- C++中关于静态对象的使用( local static object and global static object)
- C++大学基础教程_10_67_new和delete和static
- QObject: Do not delete object, 'unnamed', during its event handler!
- OReilly JavaScript The Good Parts 关于Object.prototype和delete
- static, const, reference and class object, as datamembers
- 详解Hibernate缓存机制
- 数据库插入时出现 unable to extend table UPP.T_USI_PAYACC by 128 in tablespace TS_U_DEFAULT
- Red Hat Enterprice Linux 5测试 Qt 4.7 & Qt Creator(一)
- Android平台OpenMax多媒体引擎架构
- java nio
- delete static object
- Linux常用命令大全
- 教你如何迅速秒杀掉:99%的海量数据处理面试题
- Mysql行转换为列
- Perl example
- mysql 基本操作
- 电脑怎样通过数据线连接安卓手机的WIFI上网?
- WCF RIA 服务 (二十五)-- Silverlight 客户端 6
- 是无数像老钟叔的p8u8