VirtualBox

Changeset 67023 in vbox for trunk


Ignore:
Timestamp:
May 22, 2017 6:26:52 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit: When closing the session it's time to unregister the event handler for it, because it otherwise prevents the session from being garbage collected. Otherwise the VirtualBoxManager object is kept alive until python exits, which is a cleanup hazard on Windows as COM isn't operational at this point.

File:
1 edited

Legend:

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

    r66962 r67023  
    870870                    self.oTstDrv.pidFileRemove(self.uPid);
    871871                    self.fPidFile = False;
     872
     873        # It's only logical to deregister the event handler after the session
     874        # is closed. It also avoids circular references between the session
     875        # and the listener, which causes trouble with garbage collection.
     876        self.deregisterEventHandlerForTask();
    872877
    873878        self.oTstDrv.processPendingEvents();
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