[vbox-dev] VirtualBox COM works on Linux, but CRASHES on Windows !

Nikolay Igotti nikolay.igotti at oracle.com
Sun Apr 24 06:07:23 GMT 2011


Consider VirtualBoxManager() a singleton, you need to create only once. 
So smth like

g_mgr=None

def getMgr():
global g_mgr
if g_mgr is None:
g_mgr = VirtualBoxManager(None, None)
return g_mgr

will do. You don't usually need to uninitialize it, although del g_mgr 
would do unint.

Nikolay

24.04.2011 2:26, Alexey Eromenko пишет:
> Is there a way to un-initialize VirtualBoxManager() in python ?
>
> I really don't know how-to solve this problem in GNS3 now.
>





More information about the vbox-dev mailing list