I can't belive this code is working in debug mode. Add &fileException as third parameter to the Open call and see what's happening.