Path: utzoo!attcan!uunet!husc6!bu-cs!mirror!ssi3b1!ssibbs!gnn From: gnn@ssibbs.UUCP (George Neville-Neil) Newsgroups: comp.sys.amiga.tech Subject: How do I find out how much stack space I have ?? Keywords: Amiga Exec Tasks Stack Message-ID: <42@ssibbs.UUCP> Date: 15 Nov 88 00:32:24 GMT Organization: Sangho's Public Access Unix, Cambridge, MA Lines: 25 [Eat hot death Line Eater...] OK. I am trying to find out a program's allocated Stack space. I wrote a simple little test program that does this.... MyTask = FindTask(0); printf("%d\n",MyTask->tc_SPUpper); printf("%d\n",MyTask->tc_SPLower); printf("%d\n",MyTask->tc_SPReg); It runs but no matter what I set the stack to (using the cli Stack command) the SPUpper and SPLower numbers are always 4096 bytes apart. SPReg does change but not predictably. So what am I doing wrong ?? I need to do this to make sure that if the user runs the program from the cli it will tell them to set the stack to 8000. Thanks In Advance.... George Neville-Neil P.s. Does anyone know where FindTask is documented ?? It is not in the EXEC manual that I could see.