sqa Posted June 7, 2012 Share Posted June 7, 2012 Sorry if somebody can give me an idea where to look to find the possible problem in my code that gives an error: 1. #include <Array.au3> 2. dim $smt_request[64] 3. $Interpreter = $GProbe.Interpreter 4. $Interpreter.DebugOn 5. For $i = 0 To UBound($smt_request) - 1 6. $smt_request[$i] = Binary(Mod($i, 256)) 7. Next 8. $Interpreter.SMTSend(0xFF00,$smt_request) (line 8) error: The requested action with this object has failed.: $Interpreter.SMTSend(0xFF00,$smt_request) $Interpreter.SMTSend(0xFF00,$smt_request)^ ERROR Thanks a lot. Link to comment Share on other sites More sharing options...
water Posted June 7, 2012 Share Posted June 7, 2012 (edited) You need a COM error handler that exactly tells you what happens. Something like: ; Error monitoring. This will trap all COM errors Global $oError = ObjEvent("AutoIt.Error", "_ErrFunc") ; Here goes your code ; User's COM error function. Will be called if COM error occurs Func _ErrFunc() ; Do anything here. ConsoleWrite("err.number is: " & @TAB & $oError.number & @CRLF & _ "err.windescription:" & @TAB & $oError.windescription & @CRLF & _ "err.description is: " & @TAB & $oError.description & @CRLF & _ "err.source is: " & @TAB & $oError.source & @CRLF & _ "err.helpfile is: " & @TAB & $oError.helpfile & @CRLF & _ "err.helpcontext is: " & @TAB & $oError.helpcontext & @CRLF & _ "err.lastdllerror is: " & @TAB & $oError.lastdllerror & @CRLF & _ "err.scriptline is: " & @TAB & $oError.scriptline & @CRLF & _ "err.retcode is: " & @TAB & $oError.retcode & @CRLF & @CRLF) EndFunc ;==>_ErrFuncRun this code from SciTE and you will see the COM error messages in the output pane at the bottom. Edited June 7, 2012 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now