What you're experiencing is a compatibility issue with Windows 10. Your installed version of Ugrib is not compatible with Windows 10, therefore it gives you errors. I have installed the application on Windows 8.1 64bit and it works without giving errors. I recommend you download the application from the official website, then apply a compatibility tweak. Right click the setup and the executable (after is installed) and choose Properties > Compatibility. Select Windows 8.1 from the list and tick the Run as Administrator option.
Download page: http://www.grib.us/Downloads.aspx