Bill Roper (billroper) wrote,
Bill Roper

Mystery Bug, Are You Ready For Your Mystery Bug?

The locking fixes that I put in seem to be working. Unfortunately, the client side of the product is now failing as we try to update reports using an external COM library. Better yet, it only fails in a release build when it isn't running under the debugger. This makes finding the problem exciting.

It turns out that we've stored a great many copies of the pointer to the COM object, so I figured if I eliminated all of the extra copies, maybe I could eliminate the bug.

Then I discovered that every once in a while, we use a different copy of the COM object that isn't the big shared one. So now I need to put the pointer back in the objects that collectively were holding too many copies of the pointer to the shared COM object, but ignore the value that's there when I should be using the shared pointer.

My brain hurts. I hate modifying other people's code, especially when it could use just a wee bit more documentation.

Tags: musings, work

  • Time for Rebuilding

    Well, there's nothing like research. Having determined that DDR5 is going to carry a substantial price premium over DDR4 memory for at least a year…

  • Driven Wild

    The studio computer continues to misbehave in various ways. When I fired up Cubase today, I got a lot of nasty, blocky video, despite having cleaned…

  • Some Old Doggerel

    I recall having mangled a CSN tune many years ago on the way to Contraption. Like that convention, the particular co-worker whose code I was digging…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded