[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference clt::vax_basic

Title:Discussions on VAX BASIC
Notice:See Topic 1779 for latest kit info
Moderator:EPS::VANDENHEUVEL
Created:Sat Jan 25 1986
Last Modified:Tue May 13 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1798
Total number of notes:7362

1797.0. "General discusion on %BASIC-E-STACKOVF ... " by CSC32::D_SANFORD () Tue May 06 1997 17:34

  A customer modified an old application giving the above error, but claims
  he did not add any dynamic variables, instead he changed the size of an
  item in a MAP from 200 to 220 bytes...  I cannot duplciate this and 
  suspect there is more to it.

  CLT::VAX_BASIC, note 685.4/14 suggest that making a static dimension
  (DIM X(100,2000), stored in PSECT or stack) into a dynamic dimension
  (DIM X(y%,z%)) to get around this problem.  Can increasing a MAP 
  cause this error since it uses a PSECT?

  The the BASIC User Guide:  

    STACKOVF, stack frame overflow for variables

        Explanation:    ERROR-The program requires too much
        space for dynamic variables.

        User Action:    Reduce the number of dynamic variables
        or place some of the variables in a MAP or COMMON.

  As you can see the action above contradicts the use of a dynamic
  dimension...  What is the easiest way to deal with this?  If possible
  can you tell us what the limit is and how elements are counted?

  Regards, Drew Sanford
  Customer Support Center
T.RTitleUserPersonal
Name
DateLines