Opened 9 years ago

Last modified 3 years ago

#3167 closed Bug

COM Error Handler - not always fires event — at Version 1

Reported by: mLipok Owned by:
Milestone: 3.3.15.4 Component: AutoIt
Version: 3.3.15.0 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

Discussion:
https://www.autoitscript.com/forum/topic/178424-com-error-handler-not-working-for-some-strange-reason/

Here is reproducer:

; Initialize COM error handler
$oErrorHandler = ObjEvent("AutoIt.Error", _ErrFunc)
Func _ErrFunc($oError)
    ConsoleWrite("!ERROR caught" & @CRLF)
EndFunc

; Create shell object
$oObj = ObjCreate("shell.application")

;The following line should trigger COM error handler (at the last dot).
$oObj.Windows().Item(666).bzzzzzzz

Here are some of my test results:

;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3.3.8.1\ ; NOTHING
;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3_3_10_2\ ; !ERROR caught
;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3_3_12_0\ ; !ERROR caught
;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3_3_13_12\ ; NOTHING
;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3_3_13_15\ ; BUG/ISSUE EXIST
;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3_3_13_19\ ; BUG/ISSUE EXIST
;~ #AutoIt3Wrapper_Autoit3Dir=c:\Program Files (x86)\AutoIt3\AutoIt_3.3.15.0\ ; BUG/ISSUE EXIST

Change History (1)

comment:1 Changed 9 years ago by mLipok

  • Description modified (diff)
Note: See TracTickets for help on using tickets.