﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
430	Deleting disabled image controls hard crashes AutoIt	koshyjohnuk@…		"The summary and the following code should be enough to understand the problem. Please take any image file say ""example.jpg"" and put it in the same directory as the script - if the file does not exist, the crash won't occur.

{{{
Global Const $GUI_DISABLE = 128
Local $msg
Local $tp = @TempDir
Local $ginstall = GUICreate(""installer"",420,375)

Local $b_yes = GUICtrlCreateButton (""Yes"",235,335,80,26)
FileInstall(""example.jpg"",$tp &""\top"",1)
Local $i_img = GUICtrlCreatePic ($tp &""\top"",0,52,420,270)
GuiCtrlSetState(-1,$GUI_DISABLE) ;$i_img IS NOW DISABLED
GUISetState()
		
While 1
	$msg = GUIGetMsg ()
	Switch $msg
		Case $b_yes
			GUICtrlDelete($i_img) ;CRASH AT THIS POINT
			GUICtrlDelete($b_yes)
			ExitLoop
	EndSwitch
WEnd
}}}

And if it is of any use, here's the information given by Windows:

 Problem Event Name:	APPCRASH
  Application Name:	AutoIt3.exe
  Application Version:	3.2.12.0
  Application Timestamp:	482d38b9
  Fault Module Name:	AutoIt3.exe
  Fault Module Version:	3.2.12.0
  Fault Module Timestamp:	482d38b9
  Exception Code:	c0000005
  Exception Offset:	0003c4e5
  OS Version:	6.0.6001.2.1.0.768.3
  Locale ID:	1033
  Additional Information 1:	fd00
  Additional Information 2:	ea6f5fe8924aaa756324d57f87834160
  Additional Information 3:	fd00
  Additional Information 4:	ea6f5fe8924aaa756324d57f87834160"	Bug	closed		AutoIt	3.2.13.0	None	Duplicate	Disabled image, hard crash, delete control	
