Jump to content

Meaning of number returned from crashed script


rmckay
 Share

Recommended Posts

Hello,

I'm new to AutoIt and trying to understand the debug process.  I'm trying to use one of the Koda examples - ComboBox from Koda.  After I construct the Koda window I want to use IUIAutomation::findall() to get the items in the Koda combobox.  Sometimes the script I've written runs - I can expand the combox and see the contents.  When the script crashes I get an error msg:

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3" /UserParams    
+>18:49:22 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\Owner\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Owner\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  params:-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3
"C:\Users\Owner\Documents\AutoIt\Include\UIASpy_Elements.au3"(5,96) : warning: $dtagIUIAutomation already declared/assigned
Global $sCLSIDCUIAutomation, $sIIDIUIAutomation, $sIIDIUIAutomationElement,  $dtagIUIAutomation,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:\Users\Owner\Documents\AutoIt\Include\UIASpy_Elements.au3"(5,123) : warning: $dtagIUIAutomationElement already declared/assigned
Global $sCLSIDCUIAutomation, $sIIDIUIAutomation, $sIIDIUIAutomationElement,  $dtagIUIAutomation, $dtagIUIAutomationElement
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3 - 0 error(s), 2 warning(s)
->18:49:22 AU3Check ended. Press F4 to jump to next error.rc:1
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop

!<Console.au3>:
    Launching process on own...
+   CmdLine:"C:\Program Files (x86)\AutoIt3\autoit3.exe" "C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3" /Console=True

>   Get Combobox Contents from Koda Cbox 03.au3 returned 15 (0x0000000F)
!>18:49:23 AutoIt3.exe ended.rc:15
+>18:49:23 AutoIt3Wrapper Finished.
>Exit code: 15    Time: 1.792

I'm assuming that the "returned 15" is a reason for the crash.  If that is so where do I look for information about what caused it?

Thanks

Link to comment
Share on other sites

Hi Subz,

Thanks for the quick response. I've rebooted several times and sometimes have the problem and sometimes not.  Trying to reduce the script to a point that it's easy to troubleshoot.  Will post as soon as I get something that's repeatable.

 

Link to comment
Share on other sites

I do not think your script crashed (ended unexpectedly) but simply ended and a returncode (rc) of 15 is passed to the caller.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Windows error codes can be found here: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

15 means: ERROR_INVALID_DRIVE 15 (0xF) The system cannot find the drive specified.

 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

😃

Edited 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 - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...