VMware {code} Community
icmonicky
Contributor
Contributor

RunProgramInGuest Hangs

Hi,

I need help...I have a problem using RunProgramInGuest I run the program inside the VMWare and it works however the problem is if the program runs too long (more 20 minutes) inside the VMWare, my program keeps on waiting (until it timeouts) even if the program I executed is finished already. Is this a bug?

Here's the snippet of my code:

VMWareVirtualMachine.Process pCTCCAuto = vmwvmWorkingVirtualMachine.RunProgramInGuest(sProgram, sArguments, iTimeout);

if ((pCTCCAuto.ExitCode & 😎 == 😎 // check if bit is flagged
{
...
}
else
{
...
}

Thanks.

0 Kudos
1 Reply
SoMoS
Contributor
Contributor

The same happens to me ... the call to IJob.Wait() sometimes never returns.

Anyway don't relly too much on this forum as you probably won't get your question answered ... just look the answers to the other questions ...

Good luck!

0 Kudos