Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Worst Exception!!

Worst Exception!!

Scheduled Pinned Locked Moved The Lounge
performancequestion
92 Posts 49 Posters 52 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A AlphaDeltaTheta

    What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #4

    I can't remember.

    I was brought up to respect my elders. I don't respect many people nowadays.
    CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

    S 1 Reply Last reply
    0
    • A AlphaDeltaTheta

      What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

      L Offline
      L Offline
      LloydA111
      wrote on last edited by
      #5

      I'm sure there are lots, however, the one that is currently getting on my nerves is "File not found" being thrown by one of my Python scripts when I try to import a library, despite the fact I damn well know it's installed and working. Python seems very flakey when it comes to libraries, particularly on Windows. One day it works the next it doesn't.

             .-.
            |o,o|
         ,| \_\\=/\_      .-""-.
         ||/\_/\_\\\_\\    /\[\] \_ \_\\
         |\_/|(\_)|\\\\  \_|\_o\_LII|\_
            \\.\_./// / | ==== | \\
            |\\\_/|"\` |\_| ==== |\_|
            |\_|\_|    ||" ||  ||
            |-|-|    ||LI  o ||
            |\_|\_|    ||'----'||
           /\_/ \\\_\\  /\_\_|    |\_\_\\
      
      C 1 Reply Last reply
      0
      • A AlphaDeltaTheta

        What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #6

        "An unexpected error has occured"[^] - you mean, as opposed to a totaly expected error, then? :doh:

        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        L 1 Reply Last reply
        0
        • A AlphaDeltaTheta

          What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

          pkfoxP Offline
          pkfoxP Offline
          pkfox
          wrote on last edited by
          #7

          Back in my dark COBOL days "Abnormal abend", that could indicate anything.

          When the going gets weird the weird turn pro - Hunter S Thompson RIP

          OriginalGriffO S J 3 Replies Last reply
          0
          • J Jacquers

            object reference not set to an instance of an object index is outside the bounds of the array

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #8

            Those are easy to analyze and fix though..

            M 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              "An unexpected error has occured"[^] - you mean, as opposed to a totaly expected error, then? :doh:

              The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #9

              You should expect exceptions whenever you do something which your code can't guarantee to be successful. And you should write code to catch and handle the problems you expect. Whenever an exception lands in a general exception handler, it obviously was not expected and not really handled, just reported. But I agree, if that's all a program has to say about an error, then the error handling is a little thin.

              Sent from my BatComputer via HAL 9000 and M5

              OriginalGriffO 1 Reply Last reply
              0
              • pkfoxP pkfox

                Back in my dark COBOL days "Abnormal abend", that could indicate anything.

                When the going gets weird the weird turn pro - Hunter S Thompson RIP

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #10

                <shudder> I'd forgotten that one: OS/360 in my case. And wasn't the explanation helpfull as well? "The RTM2WA is pointed to by the TCB of the failing task (field TCBRTWA), and is listed after the abnormally ending TCB." Why can't you just say "You forgot a comma you idiot" and let us both move on? :laugh:

                The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                pkfoxP A 3 Replies Last reply
                0
                • L Lost User

                  You should expect exceptions whenever you do something which your code can't guarantee to be successful. And you should write code to catch and handle the problems you expect. Whenever an exception lands in a general exception handler, it obviously was not expected and not really handled, just reported. But I agree, if that's all a program has to say about an error, then the error handling is a little thin.

                  Sent from my BatComputer via HAL 9000 and M5

                  OriginalGriffO Offline
                  OriginalGriffO Offline
                  OriginalGriff
                  wrote on last edited by
                  #11

                  That was about the only error reporting you seemed to get with Microsoft C in the DOS days. Ot at least, the only reporting I can remember. (I couldn't find an image of the DOS screen, where it was that and an "OK" and "Cancel" button, both of which did the same thing: crash.)

                  The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                  L 1 Reply Last reply
                  0
                  • A AlphaDeltaTheta

                    What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                    J Offline
                    J Offline
                    Jorgen Andersson
                    wrote on last edited by
                    #12

                    BSOD

                    Be excellent to each other. And... PARTY ON, DUDES! Abraham Lincoln

                    S 1 Reply Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      That was about the only error reporting you seemed to get with Microsoft C in the DOS days. Ot at least, the only reporting I can remember. (I couldn't find an image of the DOS screen, where it was that and an "OK" and "Cancel" button, both of which did the same thing: crash.)

                      The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #13

                      And everything we wrote that long ago was better? :)

                      Sent from my BatComputer via HAL 9000 and M5

                      OriginalGriffO 1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        <shudder> I'd forgotten that one: OS/360 in my case. And wasn't the explanation helpfull as well? "The RTM2WA is pointed to by the TCB of the failing task (field TCBRTWA), and is listed after the abnormally ending TCB." Why can't you just say "You forgot a comma you idiot" and let us both move on? :laugh:

                        The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                        pkfoxP Offline
                        pkfoxP Offline
                        pkfox
                        wrote on last edited by
                        #14

                        Wonderful stuff !!!

                        When the going gets weird the weird turn pro - Hunter S Thompson RIP

                        1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          <shudder> I'd forgotten that one: OS/360 in my case. And wasn't the explanation helpfull as well? "The RTM2WA is pointed to by the TCB of the failing task (field TCBRTWA), and is listed after the abnormally ending TCB." Why can't you just say "You forgot a comma you idiot" and let us both move on? :laugh:

                          The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                          pkfoxP Offline
                          pkfoxP Offline
                          pkfox
                          wrote on last edited by
                          #15

                          Ah yes the compiler messages of MicroFocus COBOL !!! - miss one full-stop (period) and you would get 1000's of errors. Deep joy.

                          When the going gets weird the weird turn pro - Hunter S Thompson RIP

                          B B 2 Replies Last reply
                          0
                          • A AlphaDeltaTheta

                            What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                            J Offline
                            J Offline
                            Joezer BH
                            wrote on last edited by
                            #16

                            Quote:

                            "Error: Cannot delete 6342_637.oft, there is not enough disk space. Delete one or more files to free disk space, and then try again."

                            Never underestimate the difference you can make in the lives of others.

                            OriginalGriffO 1 Reply Last reply
                            0
                            • L Lost User

                              And everything we wrote that long ago was better? :)

                              Sent from my BatComputer via HAL 9000 and M5

                              OriginalGriffO Offline
                              OriginalGriffO Offline
                              OriginalGriff
                              wrote on last edited by
                              #17

                              Well, I at least tried to tell the user what he had done wrong. Most of the time. Some of the time, probably. But MS didn't even give a nod towards "user friendly" in those days; it was "user hostile" at best, and "outright hatred" at worst.

                              The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                              1 Reply Last reply
                              0
                              • J Joezer BH

                                Quote:

                                "Error: Cannot delete 6342_637.oft, there is not enough disk space. Delete one or more files to free disk space, and then try again."

                                Never underestimate the difference you can make in the lives of others.

                                OriginalGriffO Offline
                                OriginalGriffO Offline
                                OriginalGriff
                                wrote on last edited by
                                #18

                                Oh god, I'd forgotten that piece of zen wonderfulnes

                                The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                J 1 Reply Last reply
                                0
                                • OriginalGriffO OriginalGriff

                                  Oh god, I'd forgotten that piece of zen wonderfulnes

                                  The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                                  J Offline
                                  J Offline
                                  Joezer BH
                                  wrote on last edited by
                                  #19

                                  Not an exception but with the same flavour. During windows start-up device detection: "Keyboard error or no keyboard present." and below the well known "Press F1 to continue or ESC to enter SETUP."

                                  Never underestimate the difference you can make in the lives of others.

                                  A B 2 Replies Last reply
                                  0
                                  • A AlphaDeltaTheta

                                    What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                    G Offline
                                    G Offline
                                    Gary R Wheeler
                                    wrote on last edited by
                                    #20

                                    0xC0000005, aka Windows access violation. Detection is nowhere near the place in your source code that caused the problem, and the actual cause usually has nothing to do with an attempt to access any kind of protected object.

                                    Software Zen: delete this;

                                    L J 2 Replies Last reply
                                    0
                                    • A AlphaDeltaTheta

                                      What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                      J Offline
                                      J Offline
                                      Joezer BH
                                      wrote on last edited by
                                      #21

                                      Oh, just remembered another one: "<unknown> had detected an error in <unknown>, <unknown> will now close."

                                      Never underestimate the difference you can make in the lives of others.

                                      1 Reply Last reply
                                      0
                                      • G Gary R Wheeler

                                        0xC0000005, aka Windows access violation. Detection is nowhere near the place in your source code that caused the problem, and the actual cause usually has nothing to do with an attempt to access any kind of protected object.

                                        Software Zen: delete this;

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #22

                                        Gary R. Wheeler wrote:

                                        Windows access violation.

                                        Access is a violation of many things and deserves its own exception. ;)

                                        Sent from my BatComputer via HAL 9000 and M5

                                        1 Reply Last reply
                                        0
                                        • A AlphaDeltaTheta

                                          What's in your mind is the worst exception in programming?? My favourite is Out of Memory!

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #23

                                          When things go wrong, even the worst exception is better than no exception. :sigh:

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups