Hi,<br><br>Im trying to call libvirt functions from a widows machine.<br><br>The client version i'm using is 0.6.1.<br><br>My application is a multi-Threaded application.<br><br>This is the way my application works:<br>
<br>1. I connect to Libvirt using "virConnectOpen". (this done only once when my application starts).<br>2. For funther interaction with libvirt i just call "virConnectRef" and then i call some other function like "virNodeGetInfo".<br>
3. Then i call "virConnectClose".<br><br>Now my understanding is for every "virConnectRef" call there has to be a corrosponding "virConnectClose".<br><br>In my application call to number of calls to "virConnectClose" is always equal to "virConnectRef".<br>
and "virConnectClose" corrosponding to "virConnectOpen" is called when the application is closed.<br>So connection to libvirt should always be there till the time my application is running.<br><br>But what is happening is, even if i call "virConnectRef" twice, a single call to "virConnectClose" closes the connection with libvirt.<br>
<br>Is there anything that im doing wrong here...??<br><br>Regards<br>Anuj<br>