File is already open error
gsb
The error is intermittent; in files where it happens once, it often happens in the majority of my save attempts, and it will usually save successfully in a small proportion of attempts. It occurs when re-saving a (packed experiment pxp) file under the current experiment name; it never happens in files that I have just saved under a new name. Sometimes, during repeated save attempts, files with the name [myPXPFileSaveName]T#.pxp (where # = 0,1,2... up to n-1 copies of this nature) start to build up in the destination file. It also seems like it might tend to happen more often when saving larger files (for example, most recently I was having difficulty with it on a file of ~150 Mb) and/or with multiple instances of Igor open, though I haven't tracked it carefully enough to be sure.
I'd be curious to know whether it might be possible to fix or avoid this problem (without having to save files as a different name and then later rename them to the name I'd like)? I'm using Igor 7 (7.01 build 28061), but I have had the problem just as often with Igor 6.xx. Please let me know if further information would be helpful.
January 16, 2017 at 11:44 am - Permalink
January 16, 2017 at 11:59 am - Permalink
It does happen with other programs. The problem is that some other software, typically a virus scanner, security software, or some kind of cloud storage software, opens the file while Igor is trying to save it. The issue is discussed here: http://support.microsoft.com/kb/316609. Igor uses the retry mechanism recommended in the document but it does not always work.
I don't know of any foolproof solution other than to disable virus scanners for Igor extensions, if that is possible, or to save to a local volume if the problem is cloud storage.
January 16, 2017 at 12:27 pm - Permalink
January 16, 2017 at 12:43 pm - Permalink