For Programmers: Free Programming Magazines  


Home > Archive > Cobol > August 2006 > Re: 114 Attempt to access item beyond bounds of memory - (Signal









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: 114 Attempt to access item beyond bounds of memory - (Signal
James J. Gavan

2006-08-09, 6:55 pm

am.vinod@gmail.com wrote:
> Hi,
>
> I'm trying to run a cobol program and calling "DBOPEN" with parameters
> such as IMAGE-BASE, IMAGE-PASSWORD, IMAGE-MODE, IMAGE-STATUS.
>
> I'm trying to open the database with read mode.
>
> When I animate the program, at this specific point of calling "DBOPEN"
> , Attempt to access item beyond bounds of memory - (Signal 11) occurs.
> I'm not able to proceed further.
>
> Help needed in this case.
>
> With Kind Regards,
> Vinod
>

Micahel has indicated some possible reasons. As you used the word
"Animator" I'm guessing you are using one of the M/F "Express" compilers.

A guess, you might have done something like the following :-

Program A.

01 a pic x(05).
01 b pic x(10).
01 c pic x(15).
01 d PIC X(20).

Call Program-B using a,b,c,d

Program B.

Linkage section.
01 a pic x(05).
01 c pic x(15).
01 b pic x(10).
01 d PIC X(20).

Procedure Division using a,c,b,d

Program A is sending a(05), b(10), c(15) and d(20)

Program B Linkage is saying a(05), c(15), b(10) and d(20)

Depending upon what your problem is the simplest way to overcome it is
to self-discipline yourself when coding, so that BOTH sending and
receiving parameters are in ALPHABETICAL order. (Next time you hit an
Error 114, you will recall why).

Communication - your purpose as a programmer is to indicate clearly to
end users what is happening. If you ask anybody for help please don't
expect them to be detectives - SPELL IT OUT :-

"I'm using Net Express V 4.0 with Windows XP and the following code...

(repeat your equivalent of my references to Programs A and B above)

and I'm getting an Error 114, Attempt to access an item etc....".

Chances are you will get the ONE and ONLY correct answer first time
around if you word it that way.

If still stuck - repeat what I have above, "I'm using Net Express etc...."

Jimmy
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com