This is the exception value for an unhandled exception that caused the process to terminate - it can means a lot of things.
Try to use signal and exceptions handling - it helps sometimes:
//On program begin
signal( SIGABRT, mySig);
signal( SIGFPE, mySig);
signal( SIGILL, mySig);
signal( SIGSEGV, mySig);
signal( SIGTERM, mySig);
//Install exception handling
SetUnhandledExceptionFilter( (LPTOP_LEVEL_EXCEPTION_FILTER) MyUnhandledExceptionFilter );
set_unexpected(MyUnexpected);
here mySig, MyUnhandledExceptionFilter and MyUnexpected are Your Functions.