Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

VIM API CheckForUpdates is returning nullptr

$
0
0

Hi ,

I am using the Managed C++ , Windows VIM API to connect  VCenter and extract the data metrics.

 

 

My VCenter version is 4.0.0

My ESX version is 3.5.0

 

I am trying to get the UpdateSet by calling the CheckForUpdates function as follows by always get a nullptr in return.

<code snippet>

..

VimService^ _service;

..

UpdateSet ^ update = nullptr;

update = _service->CheckForUpdates(_propCol , _UpdateVersion);

if ( update != nullptr && update->filterSet != nullptr)

{

//more code here

}

</code snippet>

 

 

Since the function always is returning "nullptr" a large part of our code is not getting executed .

 

On the contrary if i run this code against a Vcenter which has version 4.1.0 and ESX with version 4.1.0  I am able to get the data I am interested in.

 

Is there some known problem. ? Is  there some way to go around this problem.

 

Please guide.

 

Abhijeet Sane


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>