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. Now this is embarassing

Now this is embarassing

Scheduled Pinned Locked Moved The Weird and The Wonderful
45 Posts 26 Posters 2 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.
  • G Gary R Wheeler

    Embarassing3: I'm the SourceSafe *cough* data base *cough* admin, which means I'm responsible for ensuring the integrity of our source control system. Besides, this is far from the worst bug I've ever fixed that had been around for a while.

    Software Zen: delete this;

    D Offline
    D Offline
    Dan Neely
    wrote on last edited by
    #41

    That should make it even easier to "fix". :-\

    Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

    1 Reply Last reply
    0
    • G Gary Wheeler

      if (_Uptime != null)
      {
      _Uptime.Remove(TraCommon.Tokens.TraService_Speed);
      }
      {
      _Uptime = new Service.Message();
      _Uptime.Code = SysCommon.CommandCode.SysUptimeEvt;
      }

      I just found this in my code. It's been there for years.

      Software Zen: delete this;

      E Offline
      E Offline
      etkid84
      wrote on last edited by
      #42

      of the else clause? will lint catch that error?

      David

      G 1 Reply Last reply
      0
      • E etkid84

        of the else clause? will lint catch that error?

        David

        G Offline
        G Offline
        Gary Wheeler
        wrote on last edited by
        #43

        etkins wrote:

        will lint catch that error

        I doubt it. There's nothing to differentiate this case from a normal if statement followed by a scope block.

        Software Zen: delete this;

        1 Reply Last reply
        0
        • G Gary R Wheeler

          Writing a whole lot of C# that, while it makes FxCop whine like a teenager when the mall closes early, works remarkably well.

          Software Zen: delete this;

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #44

          I like the comparison of FxCop whinging like a teenager... :)

          WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial

          1 Reply Last reply
          0
          • G Gary Wheeler

            if (_Uptime != null)
            {
            _Uptime.Remove(TraCommon.Tokens.TraService_Speed);
            }
            {
            _Uptime = new Service.Message();
            _Uptime.Code = SysCommon.CommandCode.SysUptimeEvt;
            }

            I just found this in my code. It's been there for years.

            Software Zen: delete this;

            M Offline
            M Offline
            Martin Cheng
            wrote on last edited by
            #45

            It 's OK to code like this It was supposed to various _Uptime get the instance in the "{ xxx }" :-D :-D

            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