﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2813	"Accessing ""last created control"" once GUI deleted - AutoIt HardCrash"	mLipok	Jon	"Today I have another day cleanup of old scripts.
I changed my own UDF files. 
Most scripts that use these UDF is working properly, only one showed a tendency to HardCrash. 

After a few hour searching, I managed to prepare the reproductive script. 
I know that he is in some sense an unusual but in the best way I know of shows where the error is.


{{{
#include <GUIConstantsEx.au3>

ConsoleWrite(@CRLF & 'Checking normal behavior' & @CRLF)
GUI()

ConsoleWrite(@CRLF & 'Checking AutoIt HardCrash' & @CRLF)
GUI(True)

Func GUI($bTest = False )
	Local $hGUI = GUICreate('TITLE', 100, 100)
	Local $idEdit = GUICtrlCreateEdit('', 1, 1, 99, 99)
	GUIDelete($hGUI)

	ConsoleWrite('$bTest = '&$bTest &' @ScriptLineNumber =' & @ScriptLineNumber & @CRLF)
	If $bTest = True then
		; Here you can see AutoIt HardCrash
		GUICtrlSetResizing(-1, $GUI_DOCKALL)
	Else
		GUICtrlSetResizing($idEdit, $GUI_DOCKALL)
	EndIf
	ConsoleWrite('$bTest = '&$bTest &' @ScriptLineNumber =' & @ScriptLineNumber & @CRLF)
EndFunc   ;==>GUI
}}}


Checked on:
AutoIt 3.3.10.2 and 3.3.13.10
"	Bug	closed	3.3.13.11	AutoIt	3.3.13.10	None	Fixed		
