Hello fellow CVI mavens,
I might have a possible UIR bug that I found in CVI 8.1.1 using the tab control and selecting "undo" <ctrl-z> on a control edit on that tab control.
I am using the latest downloaded version of CVI 8.1.1 in evaluation mode, it is a fresh install, and I am on a fairly new Dell Dimension desktop (< 1 yr. old) running WinXP SP2 with all the latest OS updates installed.
I tried to strip the problem down to the simplest, reproducible set of UIR edits to make this CVI bug reveal itself repeatedly. It would be great if someone could let me know if by using these same sequence of simple edits, that they can reproduce it on their system, or if this is unique to me.
First, open CVI 8.1.1 using these options:
"C:\Program Files\National Instruments\CVI81\cvi.exe" -notipoftheday -newproject
Now perform the following:
1.) Select File > New > User Interface (*.uir) to get a fresh, empty UIR file with an empty default panel in it.
2.) Right-click on the "Untitled Panel" and drop down a tab control anywhere in the middle of the panel.
3.) Right-click in the new tab control and drop down a toggle-button (check box) control in the middle of the tab control.
4.) Hit shift-F10 while that control is active (to edit its co-ordinates), grow the check box to 20 by 20 pixels, then hit OK.
5.) Notice that the check box did not grow at all, perhaps because the default panel attribute of "use Windows visual styles for controls" is on, and this is preventing the check box to grow (this is a guess). Yet take note that the "selection-outline" of the check box has grown.
6.) Now perform an Edit > Undo Edit Control Coordinates (or a <ctrl-z>) and that check box edit does not "undo" properly. But what is worse is that at this point (if this was a "real" UIR editing session) some of the prior unsaved edits are now in jeopardy, because there seems to be no way to get back to CVI being normal without having it report this message popup:
Unrecoverable Internal Error at 001B:10586604.
LabWindows/CVI will be aborted.
However, you will be asked if you want to save changes before it crashes hard and disappears from view. I have yet to do any experiments to see if the UIR file is saved properly or not, and which of the most recent edits are saved before it crashes.
This same situation will happen if you put a control down that overlaps outside the "inner" selection boundary (perimeter) of the tab control (within any one tab page), and then perform an undo. This was not so repeatable, and much harder to describe as a reproducable-bug procedure in a post such as this. But it could be related to the control co-ordinate undo crash, hard to know from a user's point of view...
Hope this was helpful.
JB