1. Compile with MSVC 7.1, no optimization: my program doesn't freeze 2. Compile with MSVC 7.1, with optimization: my program doesn't freeze 3. Compile with gcc 4.2.3 (Ubuntu 64 bit), no optimization: my program doesn't freeze 4. Compile with gcc 4.2.3 (Ubuntu 64 bit), with optimization: my program freezes in a particular function 5. Compile with gcc 4.2.3 (Ubuntu 64 bit), with optimization, and include <iostream> at the top of the file where the function which freezes is defined: my program doesn't freeze Debugging this is difficult. James