|
On Feb 22, 2011, at 1:00 PM, rpg400-l-request@xxxxxxxxxxxx wrote:
I'd like to know why this code crashes on the SECOND call to mysp :MCH3601 'pointer not defined for referenced memory position'
In mysp, at the execution of "eval parmError = blank", I'm getting
does not occur.
If I do : "%OCCUR ( myMODS ) = 1;" before the call to mysp, the problem
When a MODS is passed as a parm the address of the current occurrence is
what is passed. The writer of the second program had it right in a way in
that only one instance is ever (effectively) passed.
Without knowing what the called routine does or how the external DS is
defined, I'd have to just guess that the code attempts to retrieve data
beyond the scope of the item or something.
Unless you _want_ to pass occurrences other than 1 as the starting point
you should always set the occurrence to one before passing a MODS as a parm.
Jon paris
--
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 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.