LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with the Table control in 7.1?

Hmm has anyone come across this error:
 
General Protection Fault at 001B:68570395


I managed to reproduce the results consistently by:
 
Having a brand new .UIR with just a table control in it.
Adding 40 rows and 20 columns to the control.
 
Generating a main file that looks like this:
 
#include <cvirte.h>  
#include <userint.h>
#include "test.h"
static int panelHandle;
int main (int argc, char *argv[])
{
 if (InitCVIRTE (0, argv, 0) == 0)
  return -1; /* out of memory */
 if ((panelHandle = LoadPanel (0, "test.uir", PANEL)) < 0)
  return -1;
  
 SetCtrlAttribute (panelHandle, PANEL_TABLE, ATTR_ENABLE_COLUMN_SIZING, 0);
 SetCtrlAttribute (panelHandle, PANEL_TABLE, ATTR_ENABLE_ROW_SIZING, 0);
   
 DisplayPanel (panelHandle);
 
 RunUserInterface ();
 DiscardPanel (panelHandle);
 return 0;
}
 
Everytime I hover over the top-left corner (the one that selects the entire table), I get that GPE.
Can anyone reproduce this?
0 Kudos
Message 1 of 2
(3,121 Views)
Hello Jakeus,

I was able to reproduce this, and it is indeed a bug in the table control. This will be fixed in the next version of CVI, which should be out soon.

The crash happens when you hover exactly over the vertical dividing line between the top-left corner and the first column header, if you disable column sizing, or over the horizontal dividing line between the top-left corner and the first row header, if you disable row sizing. In theory, the bug could happen with any number of rows and columns (greater than 1) but I found that it doesn't always crash. Whether it crashes or not depends on the memory state.

Unfortunately, there isn't really any workaround I can think of.

Thanks for reporting this.

Luis
0 Kudos
Message 2 of 2
(3,108 Views)