Hi,
Can anyone tell me what Error code -1 (XFFFFFFFF) means ?
My prog just exits the debugger immediately I run it. I cannot trace it to see what is going wrong.
Thanks.
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.
Many C runtime functions and some Win32 API functions return -1 if something has gone wrong. Usually, if a function returns -1, you can check the errno variable or you must call GetLastError ( ) to find out the reason of the failure. The documentation of the function you are using should tell you what to do.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.