Do i need to call CoInitialize before interacting with COM in .NET?

前端 未结 2 946
醉梦人生
醉梦人生 2020-12-29 09:12

i know that a requirement of COM that every thread call CoInitialize before interacting with the COM system.

.NET exposes some items that internall

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 09:33

    To answer your first question, if I remember my Don Box correctly, every thread MUST call CoInitialize. No exceptions.

    As to the automagical part, I have no idea.

提交回复
热议问题