Modify ↓
Opened 14 years ago
Closed 14 years ago
#2218 closed Bug (Fixed)
AutoIt crash when using SetGroupInfo with $LVGS_SELECTED state before SetItemGroupID
| Reported by: | Owned by: | guinness | |
|---|---|---|---|
| Milestone: | 3.3.9.5 | Component: | Standard UDFs |
| Version: | 3.3.8.1 | Severity: | None |
| Keywords: | Crash Group ListView | Cc: |
Description
Check this example:
#include <GUIConstantsEx.au3>
#include <GUIListView.au3>
$hGUI = GUICreate("Test Script", 300, 200)
$iLV = GUICtrlCreateListView('Columnn', 20, 20, 260, 160)
$iLV_Item = GUICtrlCreateListViewItem('Item 1', $iLV)
_GUICtrlListView_EnableGroupView($iLV)
_GUICtrlListView_InsertGroup($iLV, 0, 1, 'Group 1')
_GUICtrlListView_SetGroupInfo($iLV, 1, 'Group 1', 1, $LVGS_SELECTED)
_GUICtrlListView_SetItemGroupID($iLV, 0, 1)
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
I know it's wrong usage, discovered by accident :)
But AutoIt should not crash.
P.S.
It's crashed when $LVM_SETGROUPINFO is sent.
Attachments (0)
Change History (2)
comment:1 by , 14 years ago
| Component: | AutoIt → Standard UDFs |
|---|
comment:2 by , 14 years ago
| Milestone: | → 3.3.9.5 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed by revision [7268] in version: 3.3.9.5