Allen, > Sounds like a job for a compiler. You are right of course. I think I need to learn how to compile with warnings as errors and use that to catch such bugs. Thiago, that might have been me :) John