sometime our project can run into some seem strange problem during we delete someobj , some of the code are .a static library file that we can't check it's code.
we currently use singleton to do a proxy job to avoid this core dump problem. ----- we only delete them when the system goes shut down
can ref to this article:
http://www.cnblogs.com/Solstice/archive/2010/02/10/dtor_meets_threads.html
本文讨论了在删除某些对象时遇到看似奇怪的问题,特别是当这些对象来自无法直接检查其内部代码的静态库文件时。为了解决这个问题,采用单例模式进行代理操作,确保仅在系统关闭时才执行删除操作。
3万+

被折叠的 条评论
为什么被折叠?



