Changes between Version 3 and Version 4 of Ticket #4083


Ignore:
Timestamp:
Mar 29, 2026, 4:48:58 PM (2 days ago)
Author:
mLipok
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4083 – Description

    v3 v4  
    11This issue is continuation for:
    22https://www.autoitscript.com/trac/autoit/ticket/3167
     3
    34Please check this repro script:
    45{{{#!autoit
    5 
    66Global $oCOM_ErrorHandler = ObjEvent("AutoIt.Error", _ComErrorHandler)
    77
     
    1414$oFake.FakeObject = 1
    1515
    16 ConsoleWrite($oFake.FakeObject.Check2 & @CRLF) ; _ComErrorHandler() is fired as this was already fixed in https://www.autoitscript.com/trac/autoit/ticket/3167
     16ConsoleWrite($oFake.FakeObject.Check2 & @CRLF) ; _ComErrorHandler() is not fired even this was already fixed in https://www.autoitscript.com/trac/autoit/ticket/3167
    1717
    1818$oFake.FakeObject.Check3 = 1 ; _ComErrorHandler() is not fired and AutoIt ends with "Variable must be of type "Object""
    1919
    2020Func _ComErrorHandler(ByRef $oError)
    21         #forceref $oError
    22         ConsoleWrite("! We intercepted a COM Error" & @CRLF)
     21        #forceref $oError
     22        ConsoleWrite("! We intercepted a COM Error" & @CRLF)
    2323EndFunc   ;==>_ComErrorHandler
     24
     25# both .Check2 and .Check3 should fires _ComErrorHandler() and show the console message
    2426}}}
    2527
     
    2729https://www.autoitscript.com/forum/topic/213563-catching-com-errors-when-assigning-a-value-to-chained-object
    2830
     31
    2932ps.
    3033sorry for so many edits.