Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 206069

Re: Where to put VixDiskLib_Cleanup ?

$
0
0

Hi intripoon,

 

As I understand it from Updating Applications for Advanced Transport the call sequence should be as follows:

 

    VixDiskLib_EndAccess(&connectParams, "MyApp");

    VixDiskLib_Disconnect(srcConnection);

    VixDiskLib_Cleanup(&connectParams, &numcleanedup, &numremaining);   

    VixDiskLib_Exit();

 

Is "Find VixDiskLib_Disconnect() near the end of program" to be taken literally? So far, I do a connect when I need it and disconnect when I don't need it anymore for the next few hours. But my program won't end soon after the disconnect. Is this wrong?

 

In the Multithreading Considerations section it is suggested to call VixDiskLib_InitEx() or VixDiskLib_Init() only ONCE PER PROCESS. It seems that VDDK stuff is better done in separate processes which live for the time of the VDDK associated task and then simply die.

--

Thomas G.


Viewing all articles
Browse latest Browse all 206069

Trending Articles



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