03-06-2008 11:55 AM
03-06-2008 12:05 PM
I have had collapsible regions turn off for the past several days and I haven't seen a crash yet. I'm not able to post the source code for my actual projects, but I am fairly certain that the crashes happened in more than one workspace. If I get confident that the collapsible regions turned off has solved the problem, I will turn it back on and then keep track of what workspace I was working in when the crash happened. I've been working on four applications fairly evenly over the past month of so. If I do find that one was the cause I will try to make a stripped down version to send. Given that the crash was not very predicable or frequent, that process could take a while.
Greg
03-06-2008 12:08 PM
I had been using source code regions all along, but crashes have subsided to the extent that I haven't seen one in weeks now.
I've had them disabled the last few days and no change - no crashes. Source code regions, auto backup both were enabled at the time I was seeing the crashes, and my workspace had multiple projects in it.
One other poster early on seemed to have encountered a crash at the exact same spot I had - when I was confirming a save of a changed file before closing the project and opening / adding a new one.
Menchar
03-11-2008 02:34 PM
03-11-2008 03:15 PM
03-12-2008 11:39 AM
Hi Greg,
Allow me to clarify what the policy is for managing files in CVI.
1. It is the workspace that maintains the information of which files are and aren't open, not the project. So if you have multiple projects in a workspace and you switch projects within a workspace, that has no impact on the list of open files.
2. A workspace remembers which files are open. When you unload a workspace (whether it is by exiting CVI, by creating a new workspace, or by switching to a different workspace) and you then re-load the original workspace, CVI will re-open all the files that were open at the time that that you unloaded the original workspace.
3. After you unload a workspace, CVI will remove all files that did not belong to any project of that workspace. Let's say that while you are working on workspace 1, you open project files A, B, and C, and you also open non-project files U and V. Now, let's say that you switch to workspace 2. CVI will close A, B and C, but will leave files U and V open (since they're considered neutral files, not necessarily belonging to workspace 1). When you open workspace 2, CVI will open the files that were last open when workspace 2 was used, and will keep open files U and V.
The implication of this last paragraph is that non-project files remain open across workspace switches. What this means in practice is that they will accumulate and never be unloaded unless you explicitly close them. This is by design, and reflects the policy that CVI has always had, going back to version 3.0, when there were only projects and no workspaces. Back then, after you'd switch to a different project, CVI would close only the files that belonged to the project you were switching from.
These are the rules, but the crashes are a different story. If you can reproduce some of these crashes you've been seeing, I'd be very interested in finding out more about it, so that we can investigate them. At least having the crash address might help some. Also, if you can reproduce some file management behavior that does not conform to the rules I described here, I'd like to know about that too.
Thanks,
Luis
03-12-2008 02:37 PM
03-13-2008 02:08 PM
03-13-2008 02:59 PM
OK, Luis.
I think I have it.
Open work space A - now open a neutral file "NF". Now switch to work space B. NF is still open. Close NF. NF goes away. Now switch to work space A and NF "returns".
Similarly, Open work space A - now open a neutral file "NF". Now switch to work space B. NF is still open. Close NF. NF goes away. Close CVI. Open CVI. Defaults to workspace B - no NF. Switch to workspace A and NF returns.
It appears that the NF becomes associated with work space A until workspace A is open/active while NF is closed.
It may be that this is "normal" and possibly even the way it has always been but it just feels different to me.
I hope this helps one way or another.
Greg
03-14-2008 11:06 AM
Hi Greg,
Actually, the behavior you're describing is normal and expected.
Once you open any file in workspace A, that file remains associated with workspace A until you close it while workspace A is loaded. I'm pretty sure this behavior has always existed, going back to the beginning of CVI (and substituting projects for workspaces).
The reason NF is closed when you switch to workspace B is so that NF doesn't also become associated with workspace B. It is this aspect that I was focusing on in the previous post. I was only considering what remains open in a new workspace when you switch to it from the previous workspace.
Luis