Hi,
In windows 32 bit architecture my application is crashing while calling VixDiskLib_Open. The code is working properly in windows 64bit architecture.
I have tried in two methods which are given below.,But no luck both are failing.
Method 1:
Bool rwFlag = (appGlobals.openFlags & VIXDISKLIB_FLAG_OPEN_READ_ONLY);
VixError vixError = VixDiskLib_ConnectEx(&vixDiskLibConnectParams, rwFlag, const_cast<char*>(strSnapMoRef.c_str()),NULL, &_DiskLibConnection);
VixError vixError = ::VixDiskLib_Open(_DiskLibConnection,strDiskPath.c_str(),iOpenFlags,pDiskHandle);
Method 2:
VixError vixError = VixDiskLib_Connect(&vixDiskLibConnectParams, &_DiskLibConnection);
VixError vixError = ::VixDiskLib_Open(_DiskLibConnection,strDiskPath.c_str(),iOpenFlags,pDiskHandle);
I'm using VDDK 5.0,And i have tried to open the VMDK files from Esxi 5.0,Esxi 5.1.
In the above sequence of code my application is crashing while calling the VixDiskLib_Open() method.
Why it is happening and how to solve this issue?
Any help on this is very much appreciated.
Thanks
Manickam