Changes between Version 2 and Version 3 of Ticket #4083


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4083 – Description

    v2 v3  
     1This issue is continuation for:
     2https://www.autoitscript.com/trac/autoit/ticket/3167
     3Please check this repro script:
     4{{{#!autoit
     5
    16Global $oCOM_ErrorHandler = ObjEvent("AutoIt.Error", _ComErrorHandler)
    27
     
    813
    914$oFake.FakeObject = 1
    10 ConsoleWrite($oFake.FakeObject.Check2 & @CRLF) ; _ComErrorHandler() is fired
     15
     16ConsoleWrite($oFake.FakeObject.Check2 & @CRLF) ; _ComErrorHandler() is fired as this was already fixed in https://www.autoitscript.com/trac/autoit/ticket/3167
     17
    1118$oFake.FakeObject.Check3 = 1 ; _ComErrorHandler() is not fired and AutoIt ends with "Variable must be of type "Object""
    1219
     
    1522        ConsoleWrite("! We intercepted a COM Error" & @CRLF)
    1623EndFunc   ;==>_ComErrorHandler
     24}}}
     25
     26Disscusion was taken on the forum here:
     27https://www.autoitscript.com/forum/topic/213563-catching-com-errors-when-assigning-a-value-to-chained-object
     28
     29ps.
     30sorry for so many edits.