gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
274 stars 61 forks source link

Regression: WIDGET_TABLE segfaults when no value set at instatiation and then setting value #1771

Closed frankmri closed 5 months ago

frankmri commented 5 months ago

Hi, unfortunately there is a regression since @GillesDuvert s latest and full implementation:

GDL> base=widget_base() GDL> table=widget_table(base) GDL> widget_control, table, set_value=[["A", "B", "C"],["D", "E", "F"]] Segmentation fault (core dumped)

On the other hand this:

GDL> table=widget_table(base, value=[["A", "B", "C"],["D", "E", "F"]]) GDL> widget_control, base, /realize GDL> widget_control, table, set_value=strarr(2,2) GDL> widget_control, table, set_value=[["A", "B", "C"],["D", "E", "F"]] GDL> widget_control, table, set_value=strarr(2,2)

works without crashing

Thanks! Frank

GillesDuvert commented 5 months ago

oops case wxWidgets wxGrid not initialized (no value=xx in widget_table()) of course hangs.

GillesDuvert commented 5 months ago

corrected in #1772 ! Thanks for the quick bug report!

frankmri commented 5 months ago

Thanks for the quick fix, works here now!