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. Other Discussions
  3. The Weird and The Wonderful
  4. Internal Error.

Internal Error.

Scheduled Pinned Locked Moved The Weird and The Wonderful
saleshelp
5 Posts 3 Posters 54 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.
  • M Offline
    M Offline
    Monty2
    wrote on last edited by
    #1

    posted it long time back in lounge but still deserves to be posted here Our customer reported once that the program we shipped is corrupting his windows somehow considering it was simple data processing application i was dazed and confused so i asked him what happens he said windows is showing a Message box "Internal windows error, please restart"...... six hours later i found this in the code

    try
    {
    .
    .
    .
    }
    catch(...)
    {
    MessageBox("Internal windows error, please restart");
    }

    i was so mad partly at the *briliant coder* who wrote it and partly at myself that i didn't enforce code reviews before shipping to his defense he said "i didn't think an exception could happen there" for people who care it was a Divide by zero exception


    **I dislike feeling at home when i am abroad.
    **

    V N 2 Replies Last reply
    0
    • M Monty2

      posted it long time back in lounge but still deserves to be posted here Our customer reported once that the program we shipped is corrupting his windows somehow considering it was simple data processing application i was dazed and confused so i asked him what happens he said windows is showing a Message box "Internal windows error, please restart"...... six hours later i found this in the code

      try
      {
      .
      .
      .
      }
      catch(...)
      {
      MessageBox("Internal windows error, please restart");
      }

      i was so mad partly at the *briliant coder* who wrote it and partly at myself that i didn't enforce code reviews before shipping to his defense he said "i didn't think an exception could happen there" for people who care it was a Divide by zero exception


      **I dislike feeling at home when i am abroad.
      **

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      While I was module lead in my [previous organization](<a href=)[^], during peer code review, I found one developer doing this try { opendb(); } catch () { try { opendb() } catch () { throw ... } } The purpose of opening connection in catch and again catching it. He couldn't answer why he coded that way! :confused: :)

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      N 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        While I was module lead in my [previous organization](<a href=)[^], during peer code review, I found one developer doing this try { opendb(); } catch () { try { opendb() } catch () { throw ... } } The purpose of opening connection in catch and again catching it. He couldn't answer why he coded that way! :confused: :)

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        N Offline
        N Offline
        Newbie00
        wrote on last edited by
        #3

        buahahahahahaha that's good

        1 Reply Last reply
        0
        • M Monty2

          posted it long time back in lounge but still deserves to be posted here Our customer reported once that the program we shipped is corrupting his windows somehow considering it was simple data processing application i was dazed and confused so i asked him what happens he said windows is showing a Message box "Internal windows error, please restart"...... six hours later i found this in the code

          try
          {
          .
          .
          .
          }
          catch(...)
          {
          MessageBox("Internal windows error, please restart");
          }

          i was so mad partly at the *briliant coder* who wrote it and partly at myself that i didn't enforce code reviews before shipping to his defense he said "i didn't think an exception could happen there" for people who care it was a Divide by zero exception


          **I dislike feeling at home when i am abroad.
          **

          N Offline
          N Offline
          Newbie00
          wrote on last edited by
          #4

          hehe and I thought programmers are almost the most logically thinking people.

          V 1 Reply Last reply
          0
          • N Newbie00

            hehe and I thought programmers are almost the most logically thinking people.

            V Offline
            V Offline
            Vasudevan Deepak Kumar
            wrote on last edited by
            #5

            Logically Thinking -- True. But sometimes, throws exceptions. :)

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

            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