HP3000-L Archives

December 2001, Week 4

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:
Bruce Toback <[log in to unmask]>
Reply To:
Bruce Toback <[log in to unmask]>
Date:
Tue, 25 Dec 2001 18:57:53 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Steve Dirickson writes:

>> TURBOIMAGE ERROR AT ???????; RETURN STATUS = -11
>> DBCLOSE, MODE 121, ON <NULL>; OF DBAC.PUB
>> BAD DATABASE REFERENCE (FIRST 2 CHARACTERS)
>> HEX DUMP OF STATUS ARRAY FOLLOWS:
>> fff5 0003 0000 2488 0000 0193 4164 49e8 0079 0000
>
>However, this error indicates a more serious condition: a programmer
>who holds error- and status-checking in such low esteem that s/he is
>attempting to close a database that was not successfully opened. Since
>opening a database is pretty fundamental to the operation in most
>HP3000-based applications, I'd be more than a little concerned about
>the quality of a program that is flummoxed by a failed DBOPEN.

Or it could indicate the opposite: a programmer who's very careful and
wants to make sure that a data base is closed cleanly. That means s/he
puts the DBCLOSE in the termination path of the program so that it's
always executed, no matter what other failures (database or logic) the
program detects. This results in a spurious error message if the thing
that failed is the DBOPEN, but otherwise, it's sound practice. The logic
necessary to skip the close if the open wasn't successful might just be
viewed as a pointless complication that adds another potential point of
failure.

-- Bruce


--------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
btoback AT optc.com                |     -- Edna St. Vincent Millay
Mail sent to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2