On 10 Sep 2004 at 19:11, Steven T. Hatton wrote:
From: "Steven T. Hatton"
Is there a similar facility in Linux for exception "exception registration"? http://www.codeproject.org/cpp/exceptionhandler.asp#xx515459xx
For this discussion, I will consider exceptions to be those that are explicitly thrown or occur due to conditions like divide by zero or null pointer access. When exception occurs, interrupt is generated and control is transferred to the operating system. Operating System, in turn, calls the exception handler that inspects the function call sequence starting from the current function from where the exception originated, and performs its job of stack unwinding and control transfer. We can write our own exception handler and register it with the operating system that it would call in the event of an exception.
Windows defines a special structure for registration, called EXCEPTION_REGISTRATION:
-- Regards, Steven
You are confusing two seperate issues here - C++/Jave exception handling, which is a language feature, and Unix signals, which is an operating system feature. The former you can read about in any competent book on the relevent languag. The latter I can give you some examples of how to handle if that's what you actually want :) alan -- http://www.ibgames.net/alan Registered Linux user #6822 http://counter.li.org Winding Down - Weekly Tech Newsletter - subscribe at http://www.ibgames.net/alan/winding/mailing.html