close
windows 讓程式當掉不會記 Log
WIN API
SetErrorMode(SEM_NOGPFAULTERRORBOX);
C 的例外攔截
#include <signal.h>
void MyCrashProc(int nLevel)
{
printf("crashed !!\n") ;
exit(-1) ;
}
void main()
{
signal(SIGSEGV, MyCrashProc) ;
:
}
全站熱搜