DCOM calls from thread pool threads: CoInitialize/CoUnitialize location and expensiveness?
Posted by jpluimers on 2021/06/24
Interesting takeaway from [WayBack] DCOM calls from thread pool threads
call
CoInitialize*
at the start, and callCoUninitialize
before 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
Leave a comment