Shyke Posted October 22, 2007 Share Posted October 22, 2007 (edited) The title says it all. I've attempted to look it up but with no luck. "What is COM error 2?" (I can't provide a reproducer because I can't figure out what causes it) Edited October 23, 2007 by Shyke Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 23, 2007 Share Posted October 23, 2007 The title says it all. I've attempted to look it up but with no luck."What is COM error 2?"(I can't provide a reproducer because I can't figure out what causes it)Depends on the COM interface that sent it. What was it doing, where's the code...? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Shyke Posted October 23, 2007 Author Share Posted October 23, 2007 I don't know.My error reporter system sends me messages that say:Description:Error Number: 2Error Source:Error HelpFile:Error HelpContext:That's all I have to work with. Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 23, 2007 Share Posted October 23, 2007 I don't know.My error reporter system sends me messages that say:That's all I have to work with.Ohhhh Kaayyyy.... we can play 20 questions...Q2. Do you know which AutoIt script was running at the time? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Shyke Posted October 23, 2007 Author Share Posted October 23, 2007 No as my report code is inside a UDF that is sent out with all my software. I'll get you the most commonly used commands. $object.navigate() $object.locationurl $object.readystate $object.document.body.innerHTML $object.document.forms.item Link to comment Share on other sites More sharing options...
DaleHohm Posted October 23, 2007 Share Posted October 23, 2007 You should be able to find automation error codes and text in Winerror.h or here: http://support.microsoft.com/kb/186063Don't think you're gonna find "2" however. Better look at your error reporting routine.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Shyke Posted October 23, 2007 Author Share Posted October 23, 2007 (edited) It's more or less exactly the same information that yours provides, just shorter. I still only get a "2". Edited October 23, 2007 by Shyke Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 23, 2007 Share Posted October 23, 2007 No as my report code is inside a UDF that is sent out with all my software. I'll get you the most commonly used commands. $object.navigate() $object.locationurl $object.readystate $object.document.body.innerHTML $object.document.forms.item Those all look like properties of an IE object, either from _IECreate() or your own call to ObjCreate("InternetExplorer.Application"). But, just because they are most commonly used doesn't mean they are the ones throwing the error. Dale's answer implies the error codes in winerror.h are the only ones you should get from IE (and 00000002 isn't one of them), but I would assume a particular app or COM interface can also have its own error code not listed there. So: Q3. Are there objects obtained by either ObjGet() or ObjCreate() in your scripts, other than from IE? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Shyke Posted October 23, 2007 Author Share Posted October 23, 2007 (edited) Edit: Nevermind, I have isolated and fixed the error. Thank you all for your help. Edited October 23, 2007 by Shyke 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