Programming API Can Crash Due to Power Off or Power On of Virtual Machine
Details
If you use the Programming API function to power a virtual machine
off and then on again, a call to VixVM_WaitForToolsInGuest( ) may
cause a crash in the API library.
Solution
If you need to power-cycle virtual machines after installing VMware
Tools, you should release the handle after powering off the virtual
machine. Then open a new handle, power on the virtual machine, and
call VixVM_WaitForToolsInGuest( ) on the second handle.