Code: Select all
#Requires AutoHotkey v2
G := Gui()
LV := G.Add("ListView", "r20 w700", ["a","b"])
LV.Insert(1,)
; LV.Insert(1, unset) ; this works
G.Show()
Code: Select all
Critical Error: Invalid memory read/write.
002: G := Gui()
003: LV := G.Add("ListView", "r20 w700", ["a","b"])
▶ 004: LV.Insert(1,)
006: G.Show()
007: Exit
The program is now unstable and will exit.