[v2.0.4] LV.Add/Insert/Modify: Critical error when passing minimum parameters
Posted: 23 Jul 2023, 14:24
The following code:
causes the following error:
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.