﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
387	Change DllCallbackFree() to check handle validation or erase it	MsCreatoR <mscreator@…>	Jon	"From the help file:

{{{
If handle is invalid, an AutoIt runtime error will be thrown, and the script will terminate!
}}}

First of all, i think none of built-in functions should not to hard crash the script.
But if it's really inevitably, those functions should (optional?) recieve handle ByRef, and change the $handle to 0 after it's releasing the CallBack. Something like this:

{{{
Func _DllCallbackFree(ByRef $Handle)
	If $Handle > 0 Then
		DllCallbackFree($Handle)
		$Handle = 0
		Return
	EndIf
	
	Return -1
EndFunc
}}}

Because for now there is a chance that our script can crash when it's not supose to (in the middle of some task).

Thanks."	Bug	closed	3.2.13.4	AutoIt	3.2.12.1	None	Fixed	DllCallbackFree Crash	
