Hi from Austria,
When i want to run the following code :
#include <string.h>
#include "vix.h"
VixHandle hostHandle = VIX_INVALID_HANDLE;
int main()
{
VixError err;
VixHandle jobHandle = VIX_INVALID_HANDLE;
VixHandle vmHandle = VIX_INVALID_HANDLE;
printf("before");
jobHandle = VixHost_Connect(VIX_API_VERSION,
VIX_SERVICEPROVIDER_VMWARE_SERVER,
"localhost", // *hostName,
902, // hostPort,
"localadmin", // *userName,
"thepassword", // *password,
0, // options,
VIX_INVALID_HANDLE, // propertyListHandle,
NULL, // *callbackProc,
NULL); // *clientData);
printf("after");
err = VixJob_Wait(jobHandle,
VIX_PROPERTY_JOB_RESULT_HANDLE,
&hostHandle,
VIX_PROPERTY_NONE);
if (VIX_OK != err) {
goto abort;
}
}
the code does compiles, but during the runtime the program doesn't
come to print "after".
There is an error thrown at runtime, which looks like this
http://666kb.com/i/am63ukv2oljdavh6v.jpg
Excuse for the german language, but the bold text says:
asdf.exe has made a problem, and it has to be closed.
under it stands the stereotyp message from windows, which says that if the program has not been saved, some data will be lost.
the buttons : debug
and the other: close
my operation system is : win XP profession serivce pack 2
and the vm server works as it should work.
please help me because i don't know what to do to solve the problem.
thank you