The SetTableCellRangeVals() line below broke out at runtime and returned error -55.
I verified PANEL_table was "Hot" (from another post), and reran the application, but got the same error.
I verified picture values and size/ranges as valid (13).
I looked at VAL_TABLE_ENTIRE_RANGE = MakeRect(1,1,VAL_TO_EDGE,VAL_TO_EDGE), where VAL_TO_EDGE=-1.
- I assume (-1) determines size of array (13) and sets range to that value.
I debuged the line just before executing SetTableCellRangeVals() and the pixel values of "picture" is valid (well, non-zero).
int *picture = NULL;
picture = malloc ( 13 * 13 * sizeof(int) );
memset( picture, 0, 13 * 13 * sizeof(int) ); // initially zeros
// changed pixel values ...
SetTableCellRangeVals( panel, PANEL_table, VAL_TABLE_ENTIRE_RANGE, picture, VAL_ROW_MAJOR );
What else should I be verifying?