HP3000-L Archives

August 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dennis Handly <[log in to unmask]>
Reply To:
Dennis Handly <[log in to unmask]>
Date:
Thu, 3 Aug 2000 05:59:56 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
Ted Ashton ([log in to unmask]) wrote:
: It used Xlibtrap to trap such errors as non-acceptable enumerated values
: and suchlike.

The proper PA-RISC method is to use try/recover and escape.

:  AbortFlag is set to 0 and the program dies thusly:
: **** Bound violation or range error (TRAPS 12).

Where is it doing the range check and what are the allowable ranges?

strread seems to return a 0 on errors, is that valid??

: Is there something else I am supposed to set in the libtrap routine to avoid
: that TRAPS 12?
: Ted

You didn't escape.  :-)
And you didn't set any flags to prevent looking at the bad value you read.

ATOM RSS1 RSS2