Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: Lattice 5.02 bugs? Message-ID: <98255@sun.Eng.Sun.COM> Date: 10 Apr 89 19:14:03 GMT References: <493@bilver.UUCP> Sender: news@sun.Eng.Sun.COM Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Distribution: na Organization: Sun Microsystems, Mountain View Lines: 30 In article <493@bilver.UUCP> alj@bilver.UUCP (arthur johnson) writes: > Has anyone else experienced the following problems with Lattice 5.02?: [problems deleted] What is your stack size? This is a classic "our stack is bigger than the memory allocated for it." If you are running from a CLI environment be use the stack command to check it out. If you are running from Workbench you could use your program's icon to set it higher. Look at the local variables in your program, if you are doing image processing have you accidently declared some arrays that end up on the stack? something like : int convolve(img, op) BYTE *img; int op; { BYTE tmpimage[256][256]; /* <-- 64K of stack space right here */ ... } Look through your code and see if you have something like this in it. If so try setting the stack to 100000 bytes or so. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you. "A most excellent barbarian ... Genghis Kahn!"