04-11-2017 07:06 AM
I have a tdms and a tdms_index file that I open and display the data on a graph and after which I close.
I then want to delete this file using the function DeleteFile(filename). I keep getting error -6 access denied. How ever
when I restart the program and go directly to delete the file it works no problem. I stepped through the program to ensure that
I was closing the file before attempting to delete it but I still get the -6 error. Does CVI not release the file until it exits?
Any help would be appreciated.
04-12-2017 10:50 AM
Hi cjp1,
What steps are you going through to open, write to, and close the file? It would be helpful to know what function calls you are using and in what order.
Cheers,
Ryan