zerovoid
Contributor
Contributor

I have this exact problem with any api.

I am running the latest VMWare Server 1.0.3 and the VIX 1.1 API.

Using DEV-C++, the Perl interface and the Com interface all crash on me.

On Com and Perl it crashes when getting the error codes.

The error returned after connect is 6 (cant translate to err msg because the API crashes)

It does not matter the connection strings used or ports

The sample codes all compile fine but crash on execution after the connect.

/* \----


BEGIN CODE SNIPPET

\----


*/

#include <stdio.h>

#include <stdlib.h>

#include "vix.h"

#define CONNTYPE VIX_SERVICEPROVIDER_VMWARE_SERVER

#define HOSTNAME ""

#define HOSTPORT 0

#define USERNAME ""

#define PASSWORD ""

#define VMPOWEROPTIONS VIX_VMPOWEROP_NORMAL

/*

  • Global variables.

*/

static char *progName;

////////////////////////////////////////////////////////////////////////////////

static void

usage()

{

fprintf(stderr, "Usage: %s 1) {

vmxPath = argv[1];

fprintf(stderr, "received: %s \n", argv[1]);

} else {

usage();

exit(EXIT_FAILURE);

}

jobHandle = VixHost_Connect(VIX_API_VERSION,

CONNTYPE,

HOSTNAME, // *hostName,

HOSTPORT, // hostPort,

USERNAME, // *userName,

PASSWORD, // *password,

0, // options,

VIX_INVALID_HANDLE, // propertyListHandle,

NULL, // *callbackProc,

NULL); // *clientData);

return 0;

}

/* \----


END CODE SNIPPET

\----


*/

This crashes in the same manner

Reply
0 Kudos