Without looking at the source, it sure sounds like running off the end of an arrary. Have you tried using efence or similar to watch for that?
_________________________
--The Amigo