three questions about CoInitialize/CoUninitialize

This is a discussion on three questions about CoInitialize/CoUninitialize within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, Am I correct for the understanding of the following three questions about CoInitialize/CoUninitialize? 1. For each thread which ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    three questions about CoInitialize/CoUninitialize

    Hello everyone,


    Am I correct for the understanding of the following three questions about CoInitialize/CoUninitialize?

    1.

    For each thread which utilizes COM, we need to call CoInitialize/CoUninitialize. Not for each process.

    2.

    There is no harm to call CoUninitialize even if we do not call CoInitialize? And if we call CoInitialize N times on a thread, we need to call CoUninitialize the same of times (N times, not only 1 time) on a thread to release all resources?

    3.

    CoInitializeEx will invoke CoInitialize?


    thanks in advance,
    George

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 08:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21