LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

File changed on disk.

Hi,
 
I am currently working on two CVI projects.
 
The IDE has started reporting that a couple of the source files are changing
on the disk and prompts for synchronising action. This is only happening
with some files in one of the projects.
 
I copied the problem project to a new folder on the same hard drive and the
problem also occurs with the copy.
 
A filing system monitor shows that only CVI is accessing the files.
 
Scan disk shows no errors.
 
Has anyone else had this problem or know what might be causing it?
 
CVI 7.0.0 (393)
 
John.
0 Kudos
Message 1 of 13
(5,244 Views)
Hi,
 
Are you using both projects at the same time? Do the projects refer to same files / have the same dependancies? Would it be possible to precisely specify the message that you are presented with in the CVI development environment to aid further investigation!
 
Kind Regards,
 
Kurt
 
 
0 Kudos
Message 2 of 13
(5,227 Views)
Hi Kurt,
 
The projects are completly separate, they are in different workgroups and I don't work on them at the same time.
There is only one instance of the IDE running.
 
The message I get is in the form of a popup:
 
Title: LabWindows/CVI Message
 
Message: File "pdf.c" has been modified on disk since it was last loaded.
 
Button: Update window from disk.
Button: Skip.
Button: Overwrite disk file.
Button Cancel.
 
Using Sysinternals File monitor; only cvi.exe is accessing the file.
 
I suspected that I might have a hard drive error, but scandisk reports no faults.
I also tried copying the entire project to a new folder; this results in the same problem with
the copies.
 
 
Cheers,
John.
0 Kudos
Message 3 of 13
(5,227 Views)

Hi,

I'm able to reproduce the message that you are seeing by doing the following:

create two projects 'a' and 'b'
both projects have same hello.c file in them
open two instances of the CVI development environment one with 'project a' loaded and other with 'project b' loaded
open both hello.c files in these CVI projects and amend code in hello.c in 'project a' and click save
then click on hello.c in the 'project b' window
I get the message that you describe, see screenshot attachment

Hence could this be the same reason you see the message appear for you? i.e. amendments seem to be made to one of the files that both projects rely on. Perhaps a timestamp amendment occurs every time the file is accessed?

I'm assuming that there is some file or dependancy that both projects use.

I hope this helps

Kurt

0 Kudos
Message 4 of 13
(5,225 Views)
Hi Kurt,
 
This is indeed the message. But there is no dependencey at all between the projects.
 
They do not share a single file.
 
The projects are in differnet work spaces.
 
This is what happens;
 
1. CVI is already loaded with another workspace & project. (1 workspace = 1 project. Different workspaces = different projects).
2. Load the workspace with the problem file.
3. The problem file is displayed in the editor (as it was when the workspace was closed last time).
4. Click the "Run" button in the toolbar.
5. The File change message is displayed.
 
 
Regards,
 
John.
0 Kudos
Message 5 of 13
(5,215 Views)
Hi,

Ok since the time when you last closed the workspace did you load and run any other workspaces / projects in the CVI development environment?
Would it be possible for you to attach the all relevent files concerned in a post for me to attempt to reproduce the problem here on my machine?

Kurt
0 Kudos
Message 6 of 13
(5,209 Views)
Hi Kurt,
 
Thanks for the offer but the project is commecially sensitive, I don't want to post it on the newsgroup.
 
Yes I am working  with another project in another workspace when I'm not working on the project with the problem file.
 
Regards,
 
John.
0 Kudos
Message 7 of 13
(5,205 Views)
Hi John,
  Actually I just saw this yesterday in CVI 8, but my scenario may have been different.  I had only one CVI 8 open, and every time that I returned from the debugger it reported 'file changed on disk' for the exact same file.  I rebooted a bunch of times, and finally ended up saving, marking the entire project for recompilation, recompiled, and then rebooted one last time.  I wish I knew what I had done.  Since it kept coming back after the intial reboots, I have a tendency to suspect the workspace was damaged.  I wish I knew what ultimately fixed the problem.
  I had never seen this blatant misbehavior before in CVI 6, or 7, or 8--until yesterday.  Of course, I have accidentally opened two copies of CVI with the same project before, but then the 'filed changed on disk' behavior is exactly what you want.
 
Orlan
0 Kudos
Message 8 of 13
(5,148 Views)
Hi Orlan,
 
Thanks for the input. I haven't done any work on the problem project for a while.
 
It's just possible that the problem is be related to a backup I did shortly before message started to appear. I copied the project files to a USB flash drive; one of the files (though not the problem one) didn't copy and I'm wondering if this causes Windows (XP Home SP2) to report the file as changing when it isn't.
 
I'll try your method and let you know how I get on.
 
Cheers,
 
John.
0 Kudos
Message 9 of 13
(5,138 Views)
We experienced those exact same messages on 2 completly separate systems running 2 different CVI applications.  Very wierd.  Recompiled both projects and have not had a problem since.  Only thing I could think of is daylight savings time messed with things some how.
 
TOM B
0 Kudos
Message 10 of 13
(5,114 Views)