﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2818	OnAutoItExitRegister - Remarks and Example - proposal	mLipok		"Please consider supplementing Remark for information regarding the use of the function in which the parameters are used. This can cause error messages 'Variable used without Declaring'

In addition, I attach example workaround. Please consider placing it in HelpFile.


{{{
#include <MsgBoxConstants.au3>

OnAutoItExitRegister(MyExitFunc)
OnAutoItExitRegister(ExitWrapper)

; first normal function call - to check if Local is defined
MyExitFunc()

Sleep(1000)

; last function call - 'OnExit'
; Remark first be caled ExitWrapper
Exit

Func MyExitFunc($vTest = -1)
	Local Static $iCount = 1
	MsgBox($MB_SYSTEMMODAL, ""Exit test #"" & $iCount, ""IsDeclared('vTest') "" & @CRLF & IsDeclared('vTest'))
	$iCount += 1
EndFunc   ;==>MyExitFunc

Func ExitWrapper()
	MsgBox($MB_SYSTEMMODAL, '', 'Now exiting using ExitWrapper()')

	MyExitFunc()
EndFunc
}}}
"	Feature Request	closed		Documentation		None	Rejected		
