VirtualBox

Changeset 69558 in vbox


Ignore:
Timestamp:
Nov 3, 2017 2:23:38 AM (7 years ago)
Author:
vboxsync
Message:

testdriver/vbox.py: experimental hack for bugref:9037

File:
1 edited

Legend:

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

    r69554 r69558  
    13571357            reporter.logXcpt("getVirtualBox / API version exception");
    13581358            return False;
     1359
     1360        # HACK ALERT! Keep COM alive past the python garbage collection on in case of dangling objects. @bugref{9037}
     1361        #             This is a bit of an experiment at the moment...
     1362        if self.sHost == 'win':
     1363            try:
     1364                import pythoncom;           # pylint: disable=F0401
     1365                pythoncom.CoInitializeEx(0);   # pylint: disable=no-member
     1366                pythoncom.CoInitializeEx(0);   # pylint: disable=no-member
     1367            except:
     1368                reporter.logXcpt("pythoncom.CoInitializeEx");
    13591369
    13601370        # Done
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