On 14/04/2021 15:47, Scott Morgan via Iup-users wrote: > Running into an issue with IUP unexpectedly exiting app > > Simple Lua script: > > dlg = iup.dialog{iup.list{expand="YES",showdragdrop="YES"}} > dlg:showxy(iup.CENTER,iup.CENTER) > iup.MainLoop() > > Now click on the lower area of the list box (below the empty list item > placeholder), the executable quits without warning. > > Remove the showdragdrop setting and everything works fine. > > This is on Win10.
Further examination suggests the problem is around src/win/iupwin_list.c line 1098. The result of winListGetItemData isn't checked (returns NULL in this situation) and immediately used on the next line (itemdata->hBitmap) My guess would be to drop that immediate use on 1099, and change lines 1116,1117 to check and use the itemdata value directly. Scott _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users