Do you have semi-hosting enabled - it sounds like you have it enabled in the binary, but not in the debugger?
Try ...http://infocenter.ar...f/CJAJIEGC.html