The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-16-2004
Registered User
 

Join Date: Jun 2004
Posts: 1
exception handling

Does exception handling exist in any UNIX enviornment? I develop on Windows MSVC++ land and need to port to UNIX.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-16-2004
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,502
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0