﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1395	DLLCallbacks on Exit	ProgAndy	trancexx	"I wish it would be possible to have DLLCllbacks persist longer in the destruction chain on script termination. At least it would be great to have them alive when objects are released. This would allow to implement the 'hooking into IDispatch' directly in AutoIt without errors and without CoCreateInstance. Therefore an Object::release-dllcallback is needed and up to now AutoIt crashes and fails to exit when there are such objects on termination. [http://www.autoitscript.com/forum/index.php?showtopic=107678&view=findpost&p=759950]
You can come around this by freeing the Object-Variable manually, but you can't do that on an AutoIt-Error like ""Array out of bounds"" or any other error on which Autoit is terminating without calling the ExitFuncs. 
I don't know if this change is possible, but if it is this would be a great enhancement in favour of supporting objects.

PS: I think, this is related to tracid #1319
"	Bug	closed	3.3.9.1	AutoIt	Other	None	Fixed		
