× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have often seen this happen when other bad things are happining in your
program that destroy the program's internal storage, such as mismatched
parameters, writing past the end of allocated storage with pointers, that
sort of thing. LIke you declare a variable as 10 bytes and a service
program declares it as 128 bytes and then clears it -- whammo,
unpredictable results will occur. I actually managed to blow up the
internal RPG error handler once so badly that my job would just disappear!

Might be worth a trip through the source to check on those sorts of things.

Stu

On Tue, Jan 10, 2012 at 08:44, Morgan, Paul <Paul.Morgan@xxxxxxxxxxx> wrote:

Paul,

Is this file using a shared open data path? Could one of the subprograms
or service programs open then close this shared file?

Paul Morgan

Principal Programmer Analyst
IT Supply Chain/Replenishment

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of PAPWORTH Paul
Sent: Tuesday, January 10, 2012 5:03 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Pointer Error

I'm unable to understand why in an RPG programme that writes to a file
in a loop , that after the first write we get the following errors



MCH3601 Undefined pointer error followed by

RNX9998 Compiler or subroutine error



The processing before the write is complex and involves a number of RPG
ILE programmes and RPG service programmes. The Activation groups look ok
(Named ) however interspaced in the processing are a couple of RPG (OPM)
programmes. Is it possible that these could be the cause of our problem.



We are at Version 6



Thank you in advance



--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.