Patrik,

This result is consistent with the original problem of calling the routine but not providing the 4th parameter.

When you leave the parameter off of the parameter list, the system uses whatever "by chance" happens to be in memory at that spot in the parameter list.  So if it happens to be a valid null pointer, the program would work as expected.  If it does not, it'd crash with MCH3601.

You say that your version does not have this parameter, which seems unlikely to me as the 'pw_rand.c' source on GitHub was last changed on Aug 6, 2017.  That's almost 3 years old.

-SK

On 5/22/2020 3:21 PM, Patrik Schindler wrote:
Thanks again for your valuable suggestions! I'll get back to you tomorrow or next week. I'm confused myself because after recompiling/linking the unchanged RPG module with compiler optimization turned on, the problem is back again. Turning off optimization again: Problem persists. Checking: Yes, I'm calling the right *PGM object. Sign off/back on: Problem persists (could have been some strange activation group thing, eventhough I link with ACTGROUP(*NEW).


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.