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.