I got this from another post:

>Chris Apers previously wrote:
>> Is there a way to know the size of the stack ?.
>
>UInt32 GetStackSize( // returns size of stack in bytes
>   void) // no parameters
>
>    {
>    MemPtr StartPP = NULL;
>    MemPtr EndPP = NULL;
>
>    SysGetStackInfo(&StartPP, &EndPP);
>
>    UInt32 TotalBytes = (Char *) EndPP - (Char *) StartPP;
>    return TotalBytes;
>    }
>
>Given StartPP and EndPP you can also determine the amount of stack used and
>amount unused.

My question is, how do you use StartPP and EndPP to determine the amount of 
stack used and amount unused?  SysGetStackInfo always gives me the same 
values no matter where in my app I call it.

 - Jim 



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to