Sounds like you might have vMyPointer defined in twice, locally &
globally...

One is set, the other is not and you're passing the one not set.

Charles


On Thu, Mar 21, 2019 at 4:39 PM Mohammad Tanveer <surgum@xxxxxxxxx> wrote:

Ran into some strange issue when naming *Pointer variables. V7R2

Program A SQL RPGLE calling Program B service program with parameters. One
of the parameter is Pointer.

If we name a pointer parameter variable in Program A --> vMyPointer we get
unexpected data in service program B or MCH exceptions for memory.

If we change the same variable to pMyPointer or svMyPointer everything
works fine.
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2020 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].