[vbox-dev] Is there issue with IProgress_waitForCompletion?

Geoff Nordli geoffn at gnaa.net
Sat Aug 14 20:21:58 GMT 2010


We still seem to be experiencing some issues with web service. 

 

If someone has a lot of experience with the web service I would like to hire
them for a couple of hours to get things straightened out.

 

Please send me your contact details and rates.

 

Thanks,

 

Geoff 

 

From: vbox-dev-bounces at virtualbox.org
[mailto:vbox-dev-bounces at virtualbox.org] On Behalf Of DavidW
Sent: Thursday, August 12, 2010 8:43 PM
To: 'DavidW'; vbox-dev at virtualbox.org
Subject: Re: [vbox-dev] Is there issue with IProgress_waitForCompletion?

 

I think I found the problem, I should wait for OpenRemoteSession to finish.

 

From: DavidW [mailto:wyx1999 at hotmail.com] 
Sent: Thursday, August 12, 2010 8:18 PM
To: 'DavidW'; vbox-dev at virtualbox.org
Subject: RE: [vbox-dev] Is there issue with IProgress_waitForCompletion?

 

I just did some more tests, found it is not the waitForCompletion. It should
be the SessionObject related, here is what I do

 

1, IWebsessionManager_getSessionObject 

2, power up virtual machine 1 - IVirtualBox_openRemoteSession 

3, ISession_close

4, IWebsessionManager_getSessionObject

5, power up virtual machine 2 - IVirtualBox_openRemoteSession

6, ISession_close

 

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

 

1, IWebsessionManager_logon

2, IWebsessionManager_getSessionObject 

3, power up virtual machine 1 - IVirtualBox_openRemoteSession 

4, ISession_close

5,IWebsessionManager_logoff

6,IWebsessionManager_logon

7, IWebsessionManager_getSessionObject

8, power up virtual machine 2 - IVirtualBox_openRemoteSession

9, ISession_close

10,IWebsessionManager_logoff

 

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
each action?

 

Any help will be appreciated.

 

Thanks

 

 

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...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20100814/f5a2767c/attachment.html>


More information about the vbox-dev mailing list