L
LaBird
Dear all,
I'd like to know if we can do some user-level signal handling like those
provided in the Linux + C/C++?
What I would like to do is to capture SEGV fault signal (or to make it
simpler, null pointer exception) which can happen anywhere in the Java user
program. Then a user-level function / code segment (the handler) is invoked
to do something that handles the fault, and finally program can resume from
the faulting point when the handler finishes.
I don't have much experience in Java exception handling, but my pals told me
that using simple try-catch cannot achieve the above behavior. Is there any
other workaround? Thanks in advance!
Best Regards,
LaBird (Benny).
[Email: Please remove the underscores for the correct email address.]
I'd like to know if we can do some user-level signal handling like those
provided in the Linux + C/C++?
What I would like to do is to capture SEGV fault signal (or to make it
simpler, null pointer exception) which can happen anywhere in the Java user
program. Then a user-level function / code segment (the handler) is invoked
to do something that handles the fault, and finally program can resume from
the faulting point when the handler finishes.
I don't have much experience in Java exception handling, but my pals told me
that using simple try-catch cannot achieve the above behavior. Is there any
other workaround? Thanks in advance!
Best Regards,
LaBird (Benny).
[Email: Please remove the underscores for the correct email address.]