Interesting takeaway from [WayBack] DCOM calls from thread pool threads
call
CoInitialize*at the start, and callCoUninitializebefore returning. Expensive, but necessary
Related:
- [WayBack] 123683 – CoInitialize should be called at most once per thread
- [WayBack] c++ – Is CoInitialize(NULL) call expensive after CoInitializeEx(NULL, COINIT_MULTITHREADED) on the same thread? – Stack Overflow
- [WayBack] OLE DB Introduction
- [WayBack] .NET Thread Apartment and COM Interop – Pedram Rezaei
- [WayBack] delphi – IdHTTPserver: Share ADOConnection – Stack Overflow
- “expensive” “CoInitialize” free threading – Google Search
- “expensive” “CoInitialize” “Pool” – Google Search
–jeroen





