Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

How to delete a tdms & tdms_index file programmable.

$
0
0

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.


Viewing all articles
Browse latest Browse all 5339

Trending Articles