﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
810	Local or Global declarations can ignore OnAutoItExit function	david@…		"If I declare AND define a variable via a function and the function exits instead of returning then it ignores the OnAutoItExit() function.

For example, in the following script the MsgBox will NOT be displayed.

Local $Value = Repro()

Func Repro()
	Exit 0
EndFunc

Func OnAutoItExit()
	MsgBox(0,""Success"",""The OnAutoItExit function triggered!"")
EndFunc


However, this example will display the dialog.
Local $Value
$Value = Repro()

Func Repro()
	Exit 0
EndFunc

Func OnAutoItExit()
	MsgBox(0,""Success"",""The OnAutoItExit function triggered!"")
EndFunc
"	Bug	new		AutoIt	3.3.0.0	None			
