An unhandled win 32 exception

I am very new to arduino world, fairly new to programming, have practiced with Visual Studio before taking up the Arduino IDE 1.6.3

With various sketches I will get a “Visual Studio Just-IN-Time Debugger” window claiming “An unhandeld win 32 exception occurred in ID.exe [various numbers]”

Seems to be associated with serial print statements although sometimes just commenting out code or moving it around stops the problem.

When I say No to “Do you want to debug…” the arduino compiler will finish up, sometimes I can load the code and it works?

Most of the time it fails
"Arduino: 1.6.3 (Windows XP), Board: “Arduino Uno”

collect2.exe: error: ld returned 5 exit status

Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

what’s going on, is this a visual studio false alarm sometimes?
Often I am dead in the water!

More info May 8
I disabled just in time debug in the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

now I get the usual “window application needs to close” but sketches that used to continue to compile now fail

the messaes from the Arduio IDE are attached

what the hey?

messages without debugger.txt (4.12 KB)

messages with debugger.txt (4.7 KB)

This is some kind of execution failure with software running on your computer, not the software running on your arduino.

So, it cannot be directly related to the "Serial.print( )" function, executing on your arduino.

Either the arduino IDE software, or the arduino serial monitor software, or the arduino compiler, which are all software running on your computer, are causing this.

I get java crashes sometimes, for the same reason. Just restart and carry on.

I agree, the arduio is working ok. The compiler errors are the problem. I'd really rather not have this sort of error pop up, debugging with print statements is hard enough without the doubt that something else is corupt.