I've noticed in some cases that a call to VixJob_Wait( ) appears to block indefinitely. For example,
jobHandle = VixVM_Open( ... );
jobWaitResult = VixJob_Wait( jobHandle,VIX_PROPERTY_JOB_RESULT_HANDLE, ... ); // Can block indefinitely
I've noticed that this usually occurs after successive operations such as a VixHost_RegisterVM( ) call followed by VixVM_Open( ) call. This does not occur consistently.
1. Is there a way to set a timeout on these calls?
2. Why is this function seemingly blocking indefinitely? Is there some kind of deadlock? The fact that it is not consistent leads me to believe there is a race condition.
I'm using VIX API v1.1.2, linking with vix.lib (server-1), passingAPI version 1 to VixHost_Connect, and connecting to VMware Server v1.0.4.