i want to catch signals, e.g. SIGSEGV with a class in c++ !!!

how can I do this ???

Or is this impossible ???