OK, I'm an idiot. I was looking at absolutly the wrong place. My code is perfect (fine, anyway), my datafile isn't. Specificly, it's missing data for the pictures I was acatualy looking at as test cases. They were at the top, so the debugging print appears to work fine -- the problem had scrolled off the top of the screen!
Sorry guys, and thanks for the undeservied rep! <G>
--
theorbtwo -- http://www.rtweb.net/theorb/