LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible UIR bug found in CVI 8.1.1 using Tab control and selecting "undo" ctrl-z on a control edit

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
 
 
--
To whom it may concern: My alias is also my nickname, I've had it since I was a (very) skinny basketball-playing teen. OK, so I've got a 38 inch waist now, but my hometown friends haven't shaken that appellation for me. I trust that you will someday be OK with that alias, as I have been with that nickname.
0 Kudos
Message 1 of 3
(3,335 Views)

Hello JB,

I have an application with a lot of these tab controls on it, and I know what you're talking about Smiley Mad

I am using CVI8.0.0 and reproduced the problem. Using Shift-F10 to edit control coordinates of a control that is on a tab control, and then hitting Ctrl-z always causes CVI to crash...

0 Kudos
Message 2 of 3
(3,333 Views)

Hi JB,

I was able to reproduce the first crash that you were seeing of editing the control coordinates and the performing the undo action. This was filed as #4B28DH0F. 

However, I wasn't able to reproduce your last issue of placing a control down that overlaps the "inner" selection boundary of the table control and then performing and undo. I tried several times to get that crash to occur but couldn't. Do you have any other information that might be of help to me in trying to reproduce that issue?

Thanks

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 3 of 3
(3,249 Views)