Subject: | |
From: | |
Reply To: | |
Date: | Tue, 2 Mar 1999 18:29:04 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Greetings,
Not sure if this is an SPL or an FREAD question. I'm calling FREAD from SPL
and handing it the byte array WORK. WORK is defined in the globals (many) at
the top of the program as BYTE ARRAY WORK(*) = WORKL and WORKL is defined
previous to that as ARRAY WORKL(0:128). If those definitions are near the top
of the global definitions, it has a small address (I'm printing the value of
@WORK in my debugging code) and seems to work beautifully.
On the other hand, if it is defined later on (where it has a fairly large
address, large enough that ASCII thinks it is negative), FREAD returns with an
error 73, bounds violation. Now WORK is used fairly heavily throughout the
program and doesn't seem to cause trouble anywhere else. I don't understand,
quite, why one works and the other doesn't, I'd expect it to die everywhere if
it's going to die anywhere. There isn't some bounds checking that I need to
turn on like in COBOL, is there?
TIA,
Ted
--
Ted Ashton ([log in to unmask]), Info Serv, Southern Adventist University
==========================================================
It is hard to know what you are talking about in mathematics, yet no one
questions the validity of what you say. There is no other realm of discourse
half so queer.
-- Newman, James R.
|
|
|