﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
591	_GUICtrlListBox_AddString goes loopy when passing array instead of string	Annonymous		"First of all, I know you aren't suppose to pass an array to the $sText parameter of _GUICtrlListBox_AddString(). It was a typo that led me to discover this, and if I remember correctly, Valik once said that Autoit shouldn't hard crash under any circumstance.

When passing an array (In this case from StringSplit) to _GUICtrlListBox_AddString(), it both makes Autoit Hard-crash as well as the Dr. Watson Post-mortem debugger. This is the shortest code I can reproduce this with:

{{{
#Include <GUIListBox.au3>
$hForm = GUICreate(""Test"", 410, 492, 193, 125)
$hList = GUICtrlCreateList("""", 16, 16, 377, 383)
$azTemp = StringSplit(""Test\Hello"", ""\"")
_GUICtrlListBox_AddString($hList, $azTemp)
While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case -3
			Exit

	EndSwitch
WEnd
}}}

This first creates the infamous ""Such-and-such has encountered a problem and needs to close"" dialog. Next, after a few seconds, the same dialog appears for the Dr. Watson Post-mortem debugger (drwtsn32.exe). The Autoit script does not close, nor does it respond to an ""End Process"" from the Task Manager.

The only way to kill the script is to kill drwtsn32.exe. SciTE then reports the exit code to be :
{{{
!>19:42:54 AutoIT3.exe ended.rc:-1073740972
}}}

Operating System: Windows XP (English) SP2.

"	Bug	closed		AutoIt	3.2.12.0	None	No Bug	list box debugger crash	
