What does exit status 1 (0x1) mean for a Windows GUI program?

6,322

Exit status 1 can mean literally anything, except perhaps 'success'. These status codes are defined by the program itself, and in most cases you'll find 1 used as a catch-all for every possible failure.

(Many GUI apps don't propagate errors to the exit status at all, since practically nothing checks it.)

Only command-line tools sometimes use different codes to allow easier scripting, and even those typically reserve 1 as the "something else happened" catch-all.

Share:
6,322

Related videos on Youtube

QuestionOverflow
Author by

QuestionOverflow

Updated on September 18, 2022

Comments

  • QuestionOverflow
    QuestionOverflow over 1 year

    I have recurring occurrences of Internet Explorer (C:\Program Files\Internet Explorer\iexplore.exe) exiting with exit status 1 (0x1) in my Windows Eventlogs (event id 4689).

    Whenever I google for the meaning of these exit codes I always just end up with this list (in different incarnations), where exit code 1 is said to mean "Incorrect function", also clarified with "Indicates that Action has attempted to execute non-recognized command in Windows command prompt cmd.exe".

    This doesn't really make sense at all for Internet Explorer, so what does it really mean then?

    Is there perhaps another list with exit status codes specific for event id 4689, with completely different meanings from that list that you always end up in on Google, or what am I missing here?

    • DrZoo
      DrZoo over 7 years
      What version of Windows is this happening on? From what I've found this seems to be a Windows Server thing. I just want to verify before spewing ideas on how to fix it :)
    • QuestionOverflow
      QuestionOverflow over 7 years
      Yes, Windows Server (2008 or 2012, not sure which in this specific case), that's correct.
    • DrZoo
      DrZoo over 7 years
      Cool, from what I found this seems to be the clearest at stating how to check whether your COM+ services are installed and running.
    • QuestionOverflow
      QuestionOverflow over 7 years
      Your link seems to go to a colliding event id from the "Microsoft-Windows-Complus" application log source, while the one I'm referring to is the one in the Security log (as linked from my question text above)?