Hi,
My TEMP directory in Windows was defined in a different drive (g:) than the one I installed the arduino environment in (c:).
Every time i tried to upload or compile a script I would get the following message
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Couldn't determine program size: C:\Program Files\arduino-0015\hardware/tools/avr/bin/avr-size: 'G:\Temp\build28812.tmp\Blink.hex': No such file
It took me a while to find out, but changing the TEMP environment variable from g:\temp to c:\temp fixed this issue.
Thanks,
Guy