﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
4083	COM Error Handler - not always fires event - when assigning values	mLipok	Jon	"This issue is continuation for:
https://www.autoitscript.com/trac/autoit/ticket/3167

Please check this repro script:
{{{#!autoit
Global $oCOM_ErrorHandler = ObjEvent(""AutoIt.Error"", _ComErrorHandler)

Global $oFake[]
Global $oTestObject[]

$oFake.TestObject = $oTestObject
$oFake.TestObject.Check1 = 1

$oFake.FakeObject = 1

ConsoleWrite($oFake.FakeObject.Check2 & @CRLF) ; _ComErrorHandler() is not fired even this was already fixed in https://www.autoitscript.com/trac/autoit/ticket/3167

$oFake.FakeObject.Check3 = 1 ; _ComErrorHandler() is not fired and AutoIt ends with ""Variable must be of type ""Object""""

Func _ComErrorHandler(ByRef $oError)
        #forceref $oError
        ConsoleWrite(""! We intercepted a COM Error"" & @CRLF)
EndFunc   ;==>_ComErrorHandler

}}}


IMHO both `.Check2` and `.Check3` should fires `_ComErrorHandler()` and show the console message.

Disscusion was taken on the forum here:
https://www.autoitscript.com/forum/topic/213563-catching-com-errors-when-assigning-a-value-to-chained-object


ps.
sorry for so many edits."	Bug	assigned		AutoIt	3.3.18.0	None			
