您的位置:首页 > Web前端

[Reference] DLL_PROCESS_DETACH is the last thing my DLL's going to see, right?

2009-01-04 23:48 483 查看
关于DLL内存释放的好文章
That DLL is violating the “It is not safe to call FreeLibrary from a DllMain routine” stricture, because (a) There’s no way of knowing if CoInitialize has been called on the current thread – COM might not be initialized currently.

(b) It’s possible that the call to ComObject->Release() would cause FreeLibrary to be called,

详细
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐