how can i implement a funciton to catch exception in c laguage?
like windows _try{} _ecxeption{}
can anybody help me? Thanks in advance.
Below is the ways that i used but not useful:
1: signal() this can be ok in leopard system, but will be caught exception in tiger(system 10.4.11)
2: InstrallExceptionHandler() all thread using this function must be run before this function was called, otherwise this will be not used for other thread.
3: MPSetExceptionHandler() some time is ok, but some time doesn't run well.
Is there anyother funciton to catch exception ?
like windows _try{} _ecxeption{}
can anybody help me? Thanks in advance.
Below is the ways that i used but not useful:
1: signal() this can be ok in leopard system, but will be caught exception in tiger(system 10.4.11)
2: InstrallExceptionHandler() all thread using this function must be run before this function was called, otherwise this will be not used for other thread.
3: MPSetExceptionHandler() some time is ok, but some time doesn't run well.
Is there anyother funciton to catch exception ?