Opened 12 years ago

Closed 12 years ago

#2218 closed Bug (Fixed)

AutoIt crash when using SetGroupInfo with $LVGS_SELECTED state before SetItemGroupID

Reported by: MrCreatoR <mscreator@…> Owned by: guinness
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Crash Group ListView Cc:


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_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()

I know it's wrong usage, discovered by accident :)
But AutoIt should not crash.

It's crashed when $LVM_SETGROUPINFO is sent.

Attachments (0)

Change History (2)

comment:1 Changed 12 years ago by trancexx

  • Component changed from AutoIt to Standard UDFs

comment:2 Changed 12 years ago by guinness

  • Milestone set to
  • Owner set to guinness
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [7268] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain guinness.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.