Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error code -1

Status
Not open for further replies.

Pinpoint

Programmer
Dec 23, 2001
49
GB
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.

Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top