You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
paramCount := params.maxIndex() > 0 ? params.maxIndex() : 0 ; the ternary is necessary, otherwise it would hold an empty string, causing calculations to fail
33
33
, info := this.base[ITL.Properties.TYPE_TYPEINFO]
@@ -174,9 +174,9 @@ class ITL_InterfaceWrapper extends ITL.ITL_WrapperBaseClass
174
174
}
175
175
; todo: handle arrays (native and safe)
176
176
else
177
-
ITL_VARIANT_Create(params[A_Index], variant) ; create VARIANT and put it in the array
hr := (hr := NumGet(excepInfo, 08+5*A_PtrSize, "Int")) ? hr : NumGet(excepInfo, 00, "UShort") ; get EXCEPINFO::scode or EXCEPINFO::wCode
210
+
throw Exception(ITL_FormatException("Failed to call a method."
211
+
, "The called method raised an exception: Source="""StrGet(NumGet(excepInfo, 04, "Ptr")) """, Message="""StrGet(NumGet(excepInfo, 04+A_PtrSize, "Ptr")) """"
212
+
, ErrorLevel, hr)*)
213
+
}
206
214
;throw Exception("""" method "()"" could not be called.", -1, ITL_FormatError(hr))
207
215
throw Exception(ITL_FormatException("Failed to call a method."
208
216
, "ITypeInfo::Invoke() failed for """ method """."
0 commit comments