[comp.sys.mac.programmer] Large LSP program woes - memory problem?

mlab2@kuhub.cc.ukans.edu (01/30/91)

In article <28225.27a576b0@kuhub.cc.ukans.edu>, mlab2@kuhub.cc.ukans.edu writes:
> I'm getting some ambigous errors with LSP.  The crashes appear random and while
> under the compiler (when I can get it to build an app, the app will eventually
> - sometimes soon - crash as well).
> When compiled I get an (ID=03) illegal instruction error.
> When run from LSP, it will abort program execution and point to some 'end.'
> statement and say this is a bad command.  Changing some aspects of the code
> will get it to point to yet some other valid line of code w/ the same message.
> 
> I called the Tech Support and I am leaning toward memory problems.  Perhaps the
> Stack and Heap collided?  I bump up the Stack and Zone Size under LSP and was,
> for a time, able to 'delay' the crash.
> I've looked at a number of sample programs and wonder...
> 
> How does one determine an application limit?
> Do you call SetApplLimit and then MaxApplZone?
> Should I turn off the {$I+} directive?  If so, I should set the app limit
> shouldn't I?
> 
> Basically, anyone with tips on large LSP projects probably has some helpful
> advice.  I'm on a Plus with 2 1/2 megs, LSP 3.01, 68881 and 68020/30 compile
> options are off, lots of variables are set up and lots of memory (4 fullscreen
> offscreen bitmaps).
> 
> Thanks in advance.  I'm losing days of sleep over this.  Older versions of my
> code run fine - it's just when I add a few more variables.
> 
> john calhoun

Whoops!  I had hit a macro on RedRyder!  Sorry about the previous posts title!