Fix C Runtime Errors Application Requested Runtime To Terminate

Fix C Runtime Errors Application Requested Runtime To Terminate