CoInittialize Fails with large number of processes [modified]
-
Hello, I am facing problem while calling CoInitialize(). Here is the sample code: ABC.exe ======= for (int i = 0; i < 150; i++) { if (!SUCCEEDED(::CoInitialize(NULL))) { MessageBox(NULL, "CoInitialize Failed", "Failed", 0); } COleMessageFilter* pTempObj = new COleMessageFilter; BOOL bResult = pTempObj->Register(); ::CoUninitialize(); } XYZ.exe ======= In XYZ.exe i am invoking ABC.exe for more then 750 times. After invoking around 500 exes, there is an error for CoInitialize . If i put a sleep of 1 second in for loop, then there is no error. I have simulated my problem using the above sample code. In fact, I am getting error as 0x80070583 and system error as 1411 (Class does not exist). Thanks in Advance! Regards, Tony
modified on Monday, July 12, 2010 12:07 AM