LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

File save error in Vista results in lost data

I recently posted a few file access errors that happen intermittently in CVI 8.5 running on Vista.
 
 
I have another one that is repeatable on my Vista machine, but it does not appear to happen on XP.  I only have the one Vista PC that I can test on so can someone check the following error?
 
WARNING.
WARNING... save copies of all files you use to test this error because it can result unintentionally overwritten files.
WARNING.
 
- Create a new source (or any other) file in CVI. 
 
- navigate to an existing directory and click on an existing file.  This will "seed" the filename box with name of the selected file. (I do this all the time to give new files the same base name as the rest of the files in my project)  (WARNING... make a copy of this selected file since it could be overwritten)
 
- MODIFY the file name in the Save As dialog
 
- Click save.
 
On my setup, this saves the file with the UNMODIFIED file name... happily overwriting the existing file!  very very nasty.
 
If I have the existing (unmodified name) file open in CVI I'm spared the data loss since CVI won't let me save over an open file and I get the following message.
 
=============
Cannot save file as
[unmodified filename]
(A file with the same pathname is in another window)
==============
 
I've tried this in two other text editor.  One has a similar error, the other does NOT.   UltraEdit v13.10a+2 also uses the unmodified file name, but at least prompts me to overwrite the existing file before saving.  PSPad 4.5.2 works properly and saves my file with the modified name.
 
I assume this is caused by an error or a change in the way the save file dialog box is implemented on Vista verse XP.  While the root cause may be an OS change, I think CVI should at least do the same "file exists" check that UltraEdit does OR use the save as dialog box "properly" as PSPad seems to do.
 
Greg


Message Edited by gvan on 01-22-2008 01:53 PM
0 Kudos
Message 1 of 2
(2,976 Views)
Greg,
 
It seems like this is the same issue as identified in this thread
 
The high probability of data loss as you describe makes this an important issue that I hope NI addresses very soon.
 
--Ian
0 Kudos
Message 2 of 2
(2,933 Views)