× 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.


  • Subject: Mysterious MCH3601 errors at V4R3M0
  • From: Jon.Paris@xxxxxxxxxx
  • Date: Tue, 10 Aug 1999 00:32:06 -0400



 >> how as control passes from one program to the next can one of the programs
in the stack only sometimes corrupt the stack before the first line of
executable code.

Quite simply. The corruption of the pointer to the variable (which is what is
being passed) can have occured some time before the actual call. Take the
following example:

In program A variable XYZ is defined as 20 characters long.

Program A calls program B passing XYZ.  In program B XYZ is defined as 200 long.

In program B the logic says:

  If <condition>
  Eval XYZ = *Blanks
  EndIf

Whenever the condition is true the 180 bytes of memory that follow the "real"
XYZ get 'nuked' - but only when the condition is true.  If that 180 bytes
contains the pointer that is about to be passed ........ boom (but only later
when the call is made).


This is a classic error that can surface when compiling for a new release
because the memory locations in the newly compiled objects can change.  Some of
the code in the original TAATOOLS (from QUSRTOOL) exhibits this problem when
switched to RPG IV.


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.