Changeset 164 for trunk/src/helpers/except.c
- Timestamp:
- May 13, 2002, 7:49:28 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/except.c
r158 r164 887 887 *@@changed V0.9.0 [umoeller]: added support for thread termination 888 888 *@@changed V0.9.2 (2000-03-10) [umoeller]: switched date format to ISO 889 *@@changed V0.9.19 (2002-05-07) [umoeller]: added EXCEPTIONREPORTRECORD info so that catch block can check that 889 890 */ 890 891 … … 917 918 switch (pReportRec->ExceptionNum) 918 919 { 919 /* case XCPT_PROCESS_TERMINATE:920 case XCPT_ASYNC_PROCESS_TERMINATE:921 // thread terminated:922 // if the handler has been registered to catch923 // these exceptions, continue;924 if (pRegRec2->pfnOnKill)925 // call the "OnKill" function926 pRegRec2->pfnOnKill(pRegRec2);927 // get outta here, which will kill the thread928 break; */929 930 920 case XCPT_ACCESS_VIOLATION: 931 921 case XCPT_INTEGER_DIVIDE_BY_ZERO: … … 971 961 fclose(file); 972 962 963 // copy report rec to user buffer 964 // V0.9.19 (2002-05-07) [umoeller] 965 memcpy(&pRegRec2->err, 966 pReportRec, 967 sizeof(EXCEPTIONREPORTRECORD)); 968 973 969 // jump back to failing routine 974 /* DosSetPriority(PRTYS_THREAD,975 PRTYC_REGULAR,976 0, // delta977 0); // current thread978 */979 970 longjmp(pRegRec2->jmpThread, pReportRec->ExceptionNum); 980 971 break; } … … 1003 994 * 1004 995 *@@changed V0.9.0 [umoeller]: added support for thread termination 996 *@@changed V0.9.19 (2002-05-07) [umoeller]: added EXCEPTIONREPORTRECORD info so that catch block can check that 1005 997 */ 1006 998 … … 1019 1011 switch (pReportRec->ExceptionNum) 1020 1012 { 1021 /* case XCPT_PROCESS_TERMINATE:1022 case XCPT_ASYNC_PROCESS_TERMINATE:1023 // thread terminated:1024 // if the handler has been registered to catch1025 // these exceptions, continue;1026 if (pRegRec2->pfnOnKill)1027 // call the "OnKill" function1028 pRegRec2->pfnOnKill(pRegRec2);1029 // get outta here, which will kill the thread1030 break; */1031 1032 1013 case XCPT_ACCESS_VIOLATION: 1033 1014 case XCPT_INTEGER_DIVIDE_BY_ZERO: … … 1049 1030 #endif 1050 1031 1032 // copy report rec to user buffer 1033 // V0.9.19 (2002-05-07) [umoeller] 1034 memcpy(&pRegRec2->err, 1035 pReportRec, 1036 sizeof(EXCEPTIONREPORTRECORD)); 1037 1051 1038 // jump back to failing routine 1052 1039 longjmp(pRegRec2->jmpThread, pReportRec->ExceptionNum);
Note:
See TracChangeset
for help on using the changeset viewer.