![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MMU exception | Puntino | Linux | 2 | 05-07-2008 09:35 AM |
| Exception Handling | bertpereira | Shell Programming and Scripting | 4 | 05-24-2007 10:39 AM |
| Help with RPC Exception | ejbrever | HP-UX | 2 | 08-24-2006 11:08 AM |
| RPC Exception - Help | ejbrever | UNIX for Advanced & Expert Users | 0 | 08-21-2006 09:56 AM |
| Linux g++ 2.95.3 exception handling | earl | High Level Programming | 0 | 08-16-2005 10:46 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
exception handling
Does exception handling exist in any UNIX enviornment? I develop on Windows MSVC++ land and need to port to UNIX.
|
| Forum Sponsor | ||
|
|
|
|||
|
Not exactly. The NT family of OSes throw exceptions which are handled by an exception vector. You can throw exceptions -- in the sense of software error trapping in Unix -- using C++ as well. It's no different from MSVC++ in that regard.
Unix creates signals - think of them as exactly like software interrupts -- to handle exceptions. This is not like the Windows message pump. These signals are sent to a process, which then has a signal handler. It's like an exception vector (table) except that it's a single function that processes signals or lets them through. On a Unix box, type "man signal" and it will explain a little bit about signal processing. Here is a site with PDF's that go into some depth (it's for linux, which for signals, is just fine): www.advancedlinuxprogramming.com It's a whole book. You're gonna need it. If you're going to non-Linux, try Richard Stevens book 'Advanced Programming in the UNIX Environment'. Good Luck--- The thing that's going to kill you is that NT(XP) was built from the ground up on threading. Unix was not. pthreads are supported just fine in most Unix versions, and work well. |
|||
| Google UNIX.COM |