As a follow up, I re-built the application using MS Visual Studio 2008 as a Windows console app and it has the same problem, failed after 681 iterations. That rules out Cygwin. Ralph A. Preston The MITRE Corporation 202 Burlington Road, MS E095 Bedford, MA 01730 Office: 781-271-7914 Fax: 781-271-8915