InstallExceptionHandler question

Discussion in 'Mac Programming' started by higher, Dec 3, 2008.

  1. higher macrumors newbie

    Joined:
    Dec 1, 2008
    #1
    Now I use another carbon exception handler funciton : InstallExceptionHandler .
    it works fine in one thread.
    But the new question is that : if i have two thread and they all use the InstallExceptionHandler function, one works fine and the other crash without catching the exceptions.

    Can anybody give a suggestion? Thanks in advance.
     
  2. higher thread starter macrumors newbie

    Joined:
    Dec 1, 2008
    #2
    blow is from apple :

    Calls to InstallExceptionHandler only affecting cooperative threads that had already been created, however had no effect for any threads created after it was called (as it should have). InstallExceptionHandler has been modified so that it now applies to currently executing cooperative threads and all threads created after it has been called

    can any one give me another function to catch exception in carbon
    thanks in advance.
     

Share This Page