Hello there, >How did you discover the problem? I used a static C/C++ analyser called cppcheck. Home page at http://cppcheck.sourceforge.net/ I find it very useful for all C/C++ work. Regards David Binderman