Catching memory faults

How can I catch a memory fault (i.e., execute some function in case of
memory fault)?
Markus

Oh, I guess I just need to catch the signal?

“Markus Loffler” <loffler@ces.clemson.edu> wrote in message
news:9d92ho$bu2$1@inn.qnx.com

How can I catch a memory fault (i.e., execute some function in case of
memory fault)?
Markus

Markus Loffler <loffler@ces.clemson.edu> wrote:

Oh, I guess I just need to catch the signal?

Yup.

Use the signal() or sigaction() call to catch the SIGSEGV signal.

-David

“Markus Loffler” <> loffler@ces.clemson.edu> > wrote in message
news:9d92ho$bu2$> 1@inn.qnx.com> …
How can I catch a memory fault (i.e., execute some function in case of
memory fault)?
Markus
\


QNX Training Services
dagibbs@qnx.com