error control

Aug 19, 2009 at 6:06 PM

whats the best way to implement error control while using the library.

the obvious example i have is attempting VIX_VMPOWEROP_FROM_GUEST while the vm is still booting up, so even though IsRunning = true, its not yet ready to be used.

After that its how best to capture any errors that are generated in general.

thanks

 

alex

 

Coordinator
Aug 21, 2009 at 12:36 AM

VMWareTasks throws exceptions, so you should rely on those. For your specific problem, call WaitForToolsInGuest that will block until the VM is available for client operations.

Aug 24, 2009 at 3:29 PM

ok done, its possible for the operator to get themselves into a situation where it breaks but that at least stops the operation from timing out during poweroff