Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. CoInittialize Fails with large number of processes [modified]

CoInittialize Fails with large number of processes [modified]

Scheduled Pinned Locked Moved COM
help
1 Posts 1 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tony_Udz
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups