Man, I just spent the better part of half a day tracking down a really bizarre bug. It was really strange since it only appeared on my laptop; my desktop ran the app perfectly. Unfortunately, due to the nature of the bug, I thought it was some kind of strange configuration issue on my laptop, so I spent a lot of time trying to track down the differences between the two machines.
As it turns out, it was a configuration difference, but it wasn’t one that I expected. Instead, it turned out to be a difference in a default values! The fact that it worked at all on my desktop had to do with a remarkable coincidence of the system provided default value matching a value that I had explicitly (and quite arbitrarily) set in my code. As it turned out, the system provided default was different on my laptop, thereby exposing the bug.
The lesson to be learned (and I know I’ve been bitten by these bugs in the past - why didn’t I remember???) is to always explicitly initialize values, and don’t depend on system-provided defaults.
1 archived reader comment
Celexa (2004-10-25)
Check Celexa info.