VirtualBox

Changeset 4557 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 6, 2007 6:59:25 AM (17 years ago)
Author:
vboxsync
Message:

Main: Attempted to fix the CoInitializeEx race condition (#2304).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/COMDefs.cpp

    r4071 r4557  
    9090    LogFlowFuncEnter();
    9191
    92     HRESULT rc = S_OK;
    93 
    94 #if !defined (VBOX_WITH_XPCOM)
    95 
    96     /* disable this damn CoInitialize* somehow made by Qt during
    97      * creation of the QApplication instance (didn't explore deeply
    98      * why does it do this) */
    99     CoUninitialize();
    100 
    101 #endif /* !defined (VBOX_WITH_XPCOM) */
    102 
    103     rc = com::Initialize();
     92    /* Note: On Win32, Qt somehow calls CoInitialize[Ex]() during creation of
     93     * the QApplication instance (didn't explore deeply why it does so) with
     94     * different flags which is incompatible with our multithreaded
     95     * apartment. com::Initialize() will properly care of this situation. */
     96
     97    HRESULT rc = com::Initialize();
    10498
    10599#if defined (VBOX_WITH_XPCOM)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette