free hosting   image hosting   hosting reseller   online album   e-shop   famous people 
Free Website Templates
Free Installer

GFX :: Monk

The online portfolio of Tim Cuthbertson

<Home>

And just then... CATASTROPHE!!!

Posted Wednesday, May 18, 2005
Catastrophic Failure

I have often thought that iTunes for windows could be better. I've been developing a program which used the iTunes COM interface for a while now, called iRank. For the most part, iTunes has been fairly good to me, and any inneficiencies I have managed to work around. But in recent testing, I was confronted with a rather alarming error message which iTunes sent my application (pictured on the right).

Catastrophic: (adj) Causing ruin or destruction.

Now, I'm not normally one to panic, but this did not look like a good thing. iTunes has handed me a few null-reference errors in the past which weren't too scary, but this one seemed like a pretty big deal. I do not normally consider my computer as a place for ruin or destruction, and being told otherwise was a bit of a shock to me.

Oddly enough, I couldn't actually spot anything out of place after this error occured. I tried to recreate it, but it seemed to be shy, and I couldn't reproduce it.

This afternoon however, it struck again. But this time, I figured out why:
For every Playlist in iTunes, there is a function called PlayFirstTrack(), which does exactly what you might imagine. However, if there are no tracks in said playlist, what is iTunes to do?

Personally, I would have said that it might raise some sort of Empty Playlist error, or maybe Track Not Found.
The iTunes programmers, it seems, disagree. For this is the exact circumstance which raises the previously mentioned Catastrophic Failure error message. I know iTunes dearly loves to play music, but is it really that much of a catastrophe if it has no tracks to play?


5 Comments:

Well at least they had a sense of humour about it... rather annoying for developers tho.

Well... I think u tolled me u fixed it did u not?

"tolled"? that's hideous ;P

Anyways nope, I haven't fixed this at all. But it's only occured so far in stuff that I'm just adding for my own use, and now that I know why it's happening I don't have to worry when it does happen...

ev4n said:

the "iRank" program would be really great if you could use it on an iPod.
Im currently working for apple and i see alot of iPods that people have skrewd around with so i doubt whether you will be able to get it to work.
Good luck on your application.
Visit my page at dA :D
www.ev4n.deviantart.com

ev4n: Ooh, you're working for apple? Wanna suggest they integrate this feature into iTunes itself? That would be awesome...

Anyways as for iPods, I don't think its all that likely. It'd require some very dedicated hack-work, and I'm not too great at that. Maybe if it was something I'd use a lot, but once I've rated my songs I don't really need to change anything, except for the "My Rating" which you can already change...

What's this got to do with iPods? I thought this was iTunes... iRank has nothing to do with iPod...

> "tolled"? that's hideous ;P
Neh.. thats what u say! One day, everyone will be saying "tolled" and I'll be like, "I tolled u sew!"