Hi,
Yi, you are correct, the AE made a typo and she will contact R&D about it...
To expand on the events leading to the breaking of the VI....and on my findings....
I was using LV 8.0, installed fresh just under a month ago.
I had been working on this VI for several days, but from Monday thru Wednesday I worked some more on it doing cosmetic improvements and documenting (my bad luck being that it got corrupted just when I had declared that I was finished with it).
I always had the block diagram open and it was not until thursday that at one point labview crashed. Several things happened before crashing, so I don't know if one in particular was the culprit, a combination of factors or none of them.... one of the things that happened being that I "stupidly" put a message box inside a while loop, with no way to exit the loop (doh!)... and since there was no way to stop the program I opened up Task Manager and ended labview. After that I'm pretty sure I restarted Windows (XP Pro), just in case the system became unstable from the abrupt ending of LV.
In any case, the VI opened ok after that event and seemed to run ok. I may have run it several times and stopped normally by clicking on an ON/OFF switch on the front panel...at one point, though, LV crashed on its own when I clicked on the ON/OFF switch. That's when the trouble started....or so I thought!
Since then, I tried opening my VI and it would open the front panel only. If I tried to run the VI it would run perfectly (as always) but would crash LV when I clicked on the ON/OFF button again.
If I tried to show the block diagram (Ctrl-E) it would crash LV.
Everytime I started LV again (after a crash) a system message would say that LV ended abruptly last time on a .cpp process and if I wanted to report the error, but information about that error didn't give any answers.
After contacting support for the first time, I decided to determine if the problem was the VI or my installation of LV, so I tried to open it on another computer that had LV 8.0 and the same thing happened. I also tried opening on a LV 8.0.1 version and in this case it wouldn't wanna open it, saying that the VI was broken and it did not have a block diagram.
At the lab where I work, they make backups everyday, so I though I had lost at least one day of work...it turns out it was more than that! I asked them to restore from the day before the crash (when it had never crashed) and it crashed as well...and LV 8.0.1 said the same thing....I had to go back to a backup done on Monday to get a version that didn't have any errors. I'm still puzzled why the VI didn't crash labview before thrusday, if the VI had been broken since tuesday....
I have since updated my LV to 8.0.1, but on my other remaining computer with 8.0 I did several things today:
I opened up the VI and run it....it crashed LV as soon as I hit the ON/OFF switch
I opened the VI again (after starting LV again of course) and pressed Ctrl-E, it crashed LV
I opened and tried to print the block diagram....same result LV crashed
I tried to "save as".... LV crashed
I tried to save as a previous version......LV crashed
3 other things that I noticed:
* The grid on the front panel was gone
* I could not edit the front panel (right click didn't work at all), I couldn't add anything to it or move or delete (or even select anything for that matter) It would only show the little hand to change the state of buttons but not the arrow to select...and yes the arrow was selected on the tools.
* On one of the menus there would be an option that said "switch to edit mode" if I hit it it would crash LV
I am now working to (remember and) restore the functions that I had added since the last 'good' backup and will certainly have it all done in another day or so. So it's not like I lost something irreplaceable, mostly annoyed though and intrigued to why it happened, if it will happen again (which is the reason why I just updated to 8.0.1) and most of all if in the end it was just some misplaced character in the header of the VI that could've easily been fixed and had the whole thing repaired....specially since the fact remains that you could open and run the VI, so it definetly is not completly broken.
I have seen at least 2 or 3 other posts in the forum about people with similar problems, so it'd be nice if R&D came up with a VI repair utility, I mean the same way there are compressed .ZIP file repair utilities, or .JPEG or windows registry repair, or .PPT repair tools, etc, etc, etc. Just do a google search for "repair utility" and you'll see that all major software vendors have repair utilities for their file formats.
I will certainly make several backups during the day now, and will try to pay more attention to when LV behaves strangely to try and give a better reproduceable error next time.