VirtualBox

Ignore:
Timestamp:
May 6, 2016 2:43:04 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107075
Message:

Never use static instances of CComModule as it messes up the log filename by using VBoxRT.dll before it's initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r60759 r60865  
    588588}
    589589
    590 #ifdef RT_OS_WINDOWS
    591 // Required for ATL
    592 static ATL::CComModule _Module;
    593 #endif
    594590
    595591#ifdef RT_OS_DARWIN
     
    636632    const char *pszFileNameParam = "VBox-%d.vob";
    637633#endif /* VBOX_WITH_VPX */
     634#ifdef RT_OS_WINDOWS
     635    ATL::CComModule _Module; /* Required internally by ATL (constructor records instance in global variable). */
     636#endif
    638637
    639638    LogFlow(("VBoxHeadless STARTED.\n"));
Note: See TracChangeset for help on using the changeset viewer.

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