HP3000-L Archives

May 1995, 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:
Ray KINGSBURY <[log in to unmask]>
Reply To:
Ray KINGSBURY <[log in to unmask]>
Date:
Wed, 3 May 1995 15:20:00 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
> It's quite possible that the COBOL program is passing bad data (or
> more data than it was designed to handle) to the Pascal routine.
 
Almost every time I've seen this (assuming the SL procedure has
been more or less debugged), it comes from a procedure that expects
a character string parameter by reference and a length parameter
by value. COBOL, however, likes to pass everything by reference,
so unless you explicitly pass the length parameter by value (by
enclosing it in back-slashes in COBOLII), COBOL passes it's address
(which rarely turns out to also be the length). Another thing to
look out for is the Pascal procedure expecting a byte-address
instead of a word-address (COBOL likes to pass everything as
word-addresses). This, however, generally seems to cause a bounds
violation instead of a subscript range violation.
 =======================================================================
Raymond Kingsbury                       [log in to unmask]
Sr. Programmer/Analyst
College of the Redwoods - Data Processing          Voice: (707) 445-6778
Eureka, CA. 95501                                  Fax:   (707) 445-6990
 =======================================================================

ATOM RSS1 RSS2