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. Classic bug

Classic bug

Scheduled Pinned Locked Moved The Weird and The Wonderful
help
7 Posts 4 Posters 0 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    From one of our developers who should know better:

    // Validate pView pointer
    if (!pView)
    {
    pView->KillFuncHook();
    return;
    }

    F B 2 Replies Last reply
    0
    • L Lost User

      From one of our developers who should know better:

      // Validate pView pointer
      if (!pView)
      {
      pView->KillFuncHook();
      return;
      }

      F Offline
      F Offline
      Freak30
      wrote on last edited by
      #2

      Some time ago I found a similar thing in our codebase. It looked something like:

      if(table == NULL)
      {
      Log(GetFormatString("Table %d is NULL in funtion xyz!", table->Number));
      return false;
      }

      Seemed like it had been there for years before fist being hit.

      1 Reply Last reply
      0
      • L Lost User

        From one of our developers who should know better:

        // Validate pView pointer
        if (!pView)
        {
        pView->KillFuncHook();
        return;
        }

        B Offline
        B Offline
        Bert Mitton
        wrote on last edited by
        #3

        What we used to do in our dept when we found someone else's mistake would be to print it out and hang it on the wall, complete with the name of the author and the date it was found. Quickly, people began to double check their work. Sadly, we tore down that wall. :((

        J L 3 Replies Last reply
        0
        • B Bert Mitton

          What we used to do in our dept when we found someone else's mistake would be to print it out and hang it on the wall, complete with the name of the author and the date it was found. Quickly, people began to double check their work. Sadly, we tore down that wall. :((

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

          Surely there must be other walls in the office.

          List of common misconceptions

          B 1 Reply Last reply
          0
          • B Bert Mitton

            What we used to do in our dept when we found someone else's mistake would be to print it out and hang it on the wall, complete with the name of the author and the date it was found. Quickly, people began to double check their work. Sadly, we tore down that wall. :((

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

            We used to have a whiteboard with a sort of bug league table, probably time to resurrect that idea.

            1 Reply Last reply
            0
            • J Jorgen Andersson

              Surely there must be other walls in the office.

              List of common misconceptions

              B Offline
              B Offline
              Bert Mitton
              wrote on last edited by
              #6

              Yeah, but they're not nearly as close. It loses something when it's not so easily visible.

              1 Reply Last reply
              0
              • B Bert Mitton

                What we used to do in our dept when we found someone else's mistake would be to print it out and hang it on the wall, complete with the name of the author and the date it was found. Quickly, people began to double check their work. Sadly, we tore down that wall. :((

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

                Name ans shame! Works for Paedophiles.. :)

                ============================== Nothing to say.

                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