06-20-2017 02:31 AM
I use the C-API 17 with a VB-8054 in a Win10 environment. When I try to finally clean up I use
/* Clean up the handles that were initialized. */ if( dmmHandle != NULL ){ niVB_DMM_Close(dmmHandle); } if( psHandle != NULL ){ niVB_PS_Close(psHandle); } if( libHandle != NULL ){ niVB_Finalize(libHandle); }
For the two niVB_ _Close calls I get a protection fault in spite of a valid handle.
07-04-2017 02:07 AM
Hi Tklosa,
do still have problems with the close calls?
Can you provide more information, what exactly you want to do?
Best
07-04-2017 04:39 AM
Well, what I try to do is to close the connection to one of the meters inside VirtualBench. This is recommended as far as I see from the examples. Btw, there is not more documentation available. So, writing software using the VirtualBench C-Lib is often a guessing game.
However, when I call the close routine with a valid handle, I get a protection fault in return. For the moment I have commented out this call. I did not observe any contentions when I close the program without closing the interface.
Would be good if the VirtualBench could be integrated in CVI as it is done for many other systems.
Thanks, Thomas.