08-04-2005 09:10 AM
08-04-2005 10:08 AM
08-04-2005 07:55 PM
But, if CoInitializeEx() call with COINIT_MULTITHREADED is the problem, that error code must be returned from CoInitializeEx, not from CreateInstance(). I tried both thread types using CoInitialize() and CoInitializeEx()/MULTI. Then, of course the Apartment/Mult mixture of CoInitializeEx() was not allowed however, both cases were succeeded for CreateInstance() call (HRESULT == S_OK). Therefore I could not find any cases that the CreateInstance() or CoCreateInstance() function returned the 0x80010106.
The IVI Config Store DLL is marked as ThreadingModel=Apartment in the system registry at CLSID {EBC90D48-10D2-4E40-AE35-C993E127B815}. I believe the Config Store object can be created with COINIT_MULTITHREADED condition, once CoInitializeEx() has succeeded.
08-05-2005 04:54 AM
08-08-2005 11:18 PM
I tried CoInitializeEx (NULL, COINIT_MULTITHREADED) call in a test MFC app, but no problem regarding IVI Config Server was generated. Where is your CoInitializeEx() call placed in your app? My test case was at the very beginning of CMyApp::InitInstance(), allowing CoInitializeEx(multi) to return S_OK (not S_FALSE).
Also, is your IVI Shared Components the latest version? If not, try to update it.