The Old New Thing

Why does CoCreateInstance work even though my thread never called CoInitialize? The curse of the implicit MTA

While developing tests, a developer observed erratic behavior with respect to : In my test, I call and it fails with . Fair enough, because my test forgot to call . But then I went and checked the production code: In response to a client request, the production code creates a brand new thread to service the request. The brand new thread ...