VirtualBox

Ignore:
Timestamp:
Nov 9, 2017 4:46:05 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118993
Message:

vbox.py: Removed the two extra CoInitialize calls since 5.1 vboxapi has been updated to not uninitialize now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r69591 r69632  
    13451345            reporter.logXcpt("getVirtualBox / API version exception");
    13461346            return False;
    1347 
    1348         # HACK ALERT! Keep COM alive past the python garbage collection on in case of dangling objects. @bugref{9037}
    1349         #             This is a bit of an experiment at the moment...
    1350         if self.sHost == 'win' and self.fpApiVer < 5.2:
    1351             try:
    1352                 import pythoncom;           # pylint: disable=import-error
    1353                 pythoncom.CoInitializeEx(0);   # pylint: disable=no-member
    1354                 pythoncom.CoInitializeEx(0);   # pylint: disable=no-member
    1355             except:
    1356                 reporter.logXcpt("pythoncom.CoInitializeEx");
    13571347
    13581348        # Done
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