Thank you for directing right path.

I have send mail to c400-l list. If you guys interested please have look
at the attachment and help me regarding this.

Thanks

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dennis Lovelady
Sent: Wednesday, May 26, 2010 2:33 PM
To: 'RPG programming on the IBM i / System i'
Subject: RE: MCH0601: Space offset is outside current limit

1) This message does not belong in the RPG forum.
2) The code you have supplied is not enough to diagnose this problem.
3) The message is self explanatory. In short, customized for this code,
either description or description->pnext or csub_pt points to space
beyond
what has been allocated for/by the job.

Based upon the fact that it works when called the first fifteen times, I
would wildly guess that you should look at the code where pnext is
incremented.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"Always do right. This will gratify some people and astonish the rest."
-- Mark Twain


Message . . . . : Space offset X'00002000' or X'0000000000000000' is
outside
current limit for object RUNIRQ GANGASANI 025107.

Cause . . . . . : A program tried to set a space pointer, tried to
use

storage outside a space, or tried to use an unallocated page in
teraspace.
The space class is X'04'. The space class designates the type of
space:
00-primary associated space (includes space objects).

01-secondary associated space 0.

02-implicit process space for automatic storage.

03-implicit process space for static storage in activation group
mark
X'0000000000000000'.

04-implicit process space for heap identifier X'00000000' in
activation
group mark X'0000000000000000'.


-----------------------------------------------------------------------
-
-------

This issue is occurring in C ILE program when executing the following
statement


strcpy(description->pNext->desc_sec_txt_2,csub_pt->pnchar.pndsc3);

This issue is occurring only after completion of 16 calls to the C
program.

After doing RCLACTGRP, again called the C program, this time it is
successfully processed.

Note: CPU, DASD all are normal.

Can some one please help on this.

1) How to check the memory space allocated to a JOB. (object RUNIRQ
GANGASANI 025107. ).
2) Is the memory for this job is growing big and giving this issue and
I think I may need to execute free() to release the memory.

Thank you so much in advance.



2009 Winner: Broadridge receives Top Overall Honors" for 2
consecutive
years in the Black Book of Outsourcing Brokerage Process Service
Provider Survey. Learn more at http://www.broadridge.com/ranked1/



THANK GOD ITS MONDAY! Sounds interesting? Know more @
www.broadridge.com.


This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended recipient,
you are hereby notified that any dissemination of this communication
is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail and delete the message and any
attachments from your system.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.