[vbox-dev] Is there issue with IProgress_waitForCompletion?
wyx1999 at hotmail.com
Thu Aug 12 20:17:40 PDT 2010
I just did some more tests, found it is not the waitForCompletion. It should
be the SessionObject related, here is what I do
2, power up virtual machine 1 - IVirtualBox_openRemoteSession
5, power up virtual machine 2 - IVirtualBox_openRemoteSession
I randomly get error on step 5, the error is "The given session is already
open or being opened"
I found the session object id I get after step 1 and step 4 are the same, so
it seems keep get the same session. That may explain why I get the error.
I then try the following
3, power up virtual machine 1 - IVirtualBox_openRemoteSession
8, power up virtual machine 2 - IVirtualBox_openRemoteSession
So I logon/off for each call, this time, I get different session object id,
and doesn't look like I get the error anymore.
But it doesn't sound very reasonable to me, do I have to logon/logoff for
Any help will be appreciated.
From: vbox-dev-bounces at virtualbox.org
[mailto:vbox-dev-bounces at virtualbox.org] On Behalf Of DavidW
Sent: Thursday, August 12, 2010 3:55 PM
To: vbox-dev at virtualbox.org
Subject: [vbox-dev] Is there issue with IProgress_waitForCompletion?
I found IProgress_waitForCompletion not always finish right, for example,
when I call IConsole_saveState, I will call IProgress_waitForCompletion and
set timeout to 30000, and then I will call IProgress_getPercent to check, I
don't get 100 in return. And then it affects the next action I do to the VM.
Any idea I may do wrong here?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vbox-dev