« More XML musings | Main | Why Mac Petitions Frequently Suck »

Freakin' Apple

As I was battling with XML in "Russell" last night, I found that CodeWarrior would totally lock up with the spinning beach ball at some random point while debugging my shiny new XML code. Obviously, having the debugger die is not a preferred way to debug your own program.

After an hour or so of frustration, I considered that perhaps this was another case where the CW debugger just wasn't up to snuff, and whipped up a small subset of code that I could test in ProjectBuilder, to see if I could find the source of my trouble. Sure enough, PB didn't die and found the bug for me. Here's the kicker: it's a totally blatant bug in some Apple sample code that I had done a massive cut-n-paste job on to get the XML code to work. Their sample code takes some CFString constants and disposes of them with CFRelease - an absolute no-no. This caused "Russell" to crash and CodeWarrior to light on fire, but ProjectBuilder was able to cope. And I pay $250 a year each year to renew my CodeWarrior license. Hey look at that, it's time to renew again.