2010年9月20日

【转载】多线程调用COM组件的体会(CoInitialize)

摘要: 转载:本文转自cnblogs上庄园的博客调用任何COM组件之前,你必须首先初始化COM套件环境,即调用CoInitialize或CoInitializeEx。COM套件环境在线程的生存周期内有效,线程退出前需要调用CoUninitialize释放COM套件。所谓COM套件,实际上是微软为了方便大家理解而起的一个名字,不过个人认为改名词很难理解。COM套件只指COM组件运行时的环境,其中包括COM组... 阅读全文

posted @ 2010-09-20 20:42 hysoka 阅读(610) 评论(0) 推荐(0) 编辑

【转载】delphi使用COM控件的时候是否需要CoInitialize

摘要: 转载:本文转自CSDN上tingsking18的博客delphi使用COM控件的时候是否需要CoInitializeMSDN上CoInitialize的解释:Initializes the COM library on the current apartment and identifies the concurrency model as single-thread apartment (STA). Applications must initialize the COM library before they can call COM library functions other tha 阅读全文

posted @ 2010-09-20 20:29 hysoka 阅读(1441) 评论(0) 推荐(0) 编辑

【原创】Delphi中Thread Error解决三例

摘要: 在实际工作中遇到的多线程错误三例,虽然一切都过去,也记录下来,权当做个总结。 阅读全文

posted @ 2010-09-20 20:16 hysoka 阅读(6616) 评论(0) 推荐(1) 编辑

导航