Notice that I have changed the "Subject" of my post to reflect what may really be happening. More about this below.
hallockk wrote:I then open CrashTest.ses by double-clicking on the file
Double clicking on a ses file launches NEURON? Not for me, it doesn't. You must have told MSWin what to do with ses files.
With the file open, I use "save session" from the File menu again to save the file under the same name, getting the following error:
. . .
When I select quit from the File menu, CrashTest.ses is deleted.
Can't say I have ever seen or heard of anything like this under WinNT, Win2K, or WinXP with any version of NEURON. And it didn't happen today for me with 7.2 under WinXP.
That said, my first suggestion is to uninstall NEURON 7.1 (use the uninstaller in the NEURON Program Group, in the Start menu), and install the most recent alpha version 7.2 for MSWin, just in case you're running into some obscure bug in NEURON itself.
If that doesn't take care of the problem, I can only surmise that you're running into a "feature" of MSWin, which since Win 3.1 has prevented write access to a file that has already been opened by another process. The usual symptom of this "feature" is that a NEURON user has double clicked on a hoc file, then while NEURON is still running uses a text editor to make a change in the hoc file, tries to save the revised hoc file to disk, but MSWin refuses and issues an error message to the effect that "the process cannot access the file because the file is being used by another process." This is called "file locking" and it's a pain in the sitzfleisch. The error message
. . . is not open for writing
is certainly consistent with this.
Somehow this never happens under UNIX/Linux/OS X, which know how to handle such situations gracefully without blocking or even notifying the user. Well, you get what you pay for.
That said, I haven't seen file locking occur with ses files, so maybe there's something extra finicky about your particular installation of WinXP.
So what do you do if installing NEURON 7.2 doesn't eliminate the problem? You could respond to
. . . is not open for writing
messages by trying again but entering a different name for the ses file.
Or, on the chance that WinXP is finicky only because it "knows" what to do with .ses files, you could make it forget what it knows about them. To do this, start an MSWin directory browser ("Windows Explorer"), use its File types menu (Tools / Folder options/ File types) to search for the .ses extension, then click on the Advanced button and change the registry settings that tell MSWin to open .ses files with NEURON. You'll probably have to be Administrator to do this.