VMware {code} Community
snedic
Contributor
Contributor
Jump to solution

VixJob_Wait or Vix_GetProperties gives 0 for handle

Hi,

Is anyone else experiencing troubles on Windows with VIX version 1.12.2-1031769 after VixHost_Connect when trying to get VIX_PROPERTY_JOB_RESULT_HANDLE?

I mean both:

Vix_GetProperties(jobHandle,

  VIX_PROPERTY_JOB_RESULT_HANDLE,

  &hostHandle,

  VIX_PROPERTY_NONE);

and

VixJob_Wait(jobHandle,

VIX_PROPERTY_JOB_RESULT_HANDLE,

&hostHandle,

VIX_PROPERTY_NONE);

are always returning 0 for hostHandle.

It works fine with earier VIX APIs (1.11.x) and it works fine on Linux (even with 1.12.2)

Thanks and BR

Reply
0 Kudos
1 Solution

Accepted Solutions
lemke
VMware Employee
VMware Employee
Jump to solution

Error 182 is

ERROR_INVALID_ORDINAL

182 (0xB6)

The operating system cannot run %1.

Does vmrun work?

Does your app link any of the libs VIX uses, with a different version?

I've usually seen INVALID_ORDINAL when trying to use a library that's missing some symbols because its too old.

View solution in original post

Reply
0 Kudos
6 Replies
lemke
VMware Employee
VMware Employee
Jump to solution

What error is being returned?  The hostHandle will only be zero in an error case.

And what product/version are you connecting to?

Reply
0 Kudos
snedic
Contributor
Contributor
Jump to solution

Hi lemke,

Well VixError that Vix_GetProperties or VixJob_Wait are returning is VIX_OK. This is what bothers me. Handle is zero and returns are signalling that everything was OK.

What is extremely strange is that the same code works well on 1.11 APIs. I am experiencing this only with 1.12.2...

I tried to connect to vCenter 4.1.0 and 5.1.0 (no UXs)...

I can provide you with more information or connect to other products aswell...

Thank you,

iks

Reply
0 Kudos
snedic
Contributor
Contributor
Jump to solution

Hi,

In 1.12.2 I am getting "failed to load library", see vmware-vixWrapper-xxx.log:

vthread-3| I120: Log for VixWrapper pid=4408 version=1 build=build-894247 option=Release

...

...

vthread-3| I120: Loading Vix implementation library C:\Program Files (x86)\VMware\VMware VIX\Workstation-9.0.0-and-vSphere-5.1.0\32bit\vix.dll

vthread-3| I120: failed to load library C:\Program Files (x86)\VMware\VMware VIX\Workstation-9.0.0-and-vSphere-5.1.0\32bit\vix.dll (182)

vthread-3| I120: No Vix library found for provider 10 revision -1, err 0

Thanks and BR

Reply
0 Kudos
lemke
VMware Employee
VMware Employee
Jump to solution

Error 182 is

ERROR_INVALID_ORDINAL

182 (0xB6)

The operating system cannot run %1.

Does vmrun work?

Does your app link any of the libs VIX uses, with a different version?

I've usually seen INVALID_ORDINAL when trying to use a library that's missing some symbols because its too old.

Reply
0 Kudos
snedic
Contributor
Contributor
Jump to solution

Hi,

I made a clean project and it works perfectly... Even tried vmrun and it woks. There must be some dll exported functions mismatch between different dll versions because I am seeing this invalid ordinal 182... And yes, app loads a lot of stuff that vix might be using, so I will investigate in this direction... Smiley Happy

Thanks.

Reply
0 Kudos
snedic
Contributor
Contributor
Jump to solution

SSL dlls... Smooth like I never had problems with them... Smiley Happy

Reply
0 Kudos