Posted on 1998-09-23
I am experiencing a problem with ActiveX. CoInitialize() is called once at the beginning of the application, and CoUninitialize() is called once at the end. In between, CoCreateInstance() can be called several times for different COM objects - if CoCreateInstance() is called and then Release() is called 3 times, the next CoCreateInstance() fails with HRESULT = 0x800401F0 (CO_E_NOTINITIALIZED). The documentation states that CoInitialize() only needs to be called once. Am I doing something wrong?