Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!asuvax!mcdphx!estinc!fnf From: fnf@estinc.UUCP (Fred Fish) Newsgroups: comp.sys.amiga Subject: Re: Is she c:Stack'd Message-ID: <231@estinc.UUCP> Date: 10 Oct 89 21:37:03 GMT References: <3944@m2-net.UUCP> <8053@cbmvax.UUCP> <19086@ut-emx.UUCP> <620@nigel.udel.EDU> <4837@cps3xx.UUCP> Reply-To: fnf@estinc.UUCP (Fred Fish) Organization: Enhanced Software Technologies, Inc. Lines: 21 In article <4837@cps3xx.UUCP> porkka@frith.UUCP (Joe Porkka) writes: >What I do for my own programs is have them set the stack themselves. >I use the technique by Werner Guenther (not sure about spelling) to >detach from the CLI by splitting the first segment away from the >rest, then do a CreateProc and have it set the >stack size this way. I just had a need to set my own stack also, in a program that was being run from another program via Execute(). It turns out that the child process was getting a 4K stack no matter what stack the parent process had. Following a tip from John Toebes (thanks John!) I changed the call to the Execute() command to look something like: Execute ("stack 40000\nmyprogram", ...) which worked just fine. -Fred -- # Fred Fish, 1835 E. Belmont Drive, Tempe, AZ 85284, USA # 1-602-491-0048 asuvax!{nud,mcdphx}!estinc!fnf