Ignore:
Timestamp:
May 13, 2002, 7:49:28 AM (23 years ago)
Author:
umoeller
Message:

Massive pager rework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/except.c

    r158 r164  
    887887 *@@changed V0.9.0 [umoeller]: added support for thread termination
    888888 *@@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
    889890 */
    890891
     
    917918    switch (pReportRec->ExceptionNum)
    918919    {
    919         /* case XCPT_PROCESS_TERMINATE:
    920         case XCPT_ASYNC_PROCESS_TERMINATE:
    921             // thread terminated:
    922             // if the handler has been registered to catch
    923             // these exceptions, continue;
    924             if (pRegRec2->pfnOnKill)
    925                 // call the "OnKill" function
    926                 pRegRec2->pfnOnKill(pRegRec2);
    927             // get outta here, which will kill the thread
    928         break; */
    929 
    930920        case XCPT_ACCESS_VIOLATION:
    931921        case XCPT_INTEGER_DIVIDE_BY_ZERO:
     
    971961            fclose(file);
    972962
     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
    973969            // jump back to failing routine
    974             /* DosSetPriority(PRTYS_THREAD,
    975                            PRTYC_REGULAR,
    976                            0,       // delta
    977                            0);      // current thread
    978                            */
    979970            longjmp(pRegRec2->jmpThread, pReportRec->ExceptionNum);
    980971        break; }
     
    1003994 *
    1004995 *@@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
    1005997 */
    1006998
     
    10191011    switch (pReportRec->ExceptionNum)
    10201012    {
    1021         /* case XCPT_PROCESS_TERMINATE:
    1022         case XCPT_ASYNC_PROCESS_TERMINATE:
    1023             // thread terminated:
    1024             // if the handler has been registered to catch
    1025             // these exceptions, continue;
    1026             if (pRegRec2->pfnOnKill)
    1027                 // call the "OnKill" function
    1028                 pRegRec2->pfnOnKill(pRegRec2);
    1029             // get outta here, which will kill the thread
    1030         break; */
    1031 
    10321013        case XCPT_ACCESS_VIOLATION:
    10331014        case XCPT_INTEGER_DIVIDE_BY_ZERO:
     
    10491030            #endif
    10501031
     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
    10511038            // jump back to failing routine
    10521039            longjmp(pRegRec2->jmpThread, pReportRec->ExceptionNum);
Note: See TracChangeset for help on using the changeset viewer.