Picky, picky Ron... you know what I was getting at... :-)

Andreas, if you are using Constructor you can set the stack size in the
"pref- Stack Size" field of the main resource window. You'll need to select
"Generate pref Resource" first.


Gavin.

Ron Nicholson <[EMAIL PROTECTED]> wrote in message
news:94315@palm-dev-forum...
>
> In palm-dev-forum, Gavin Maxwell wrote:
> >The actual size of the stack varies
> >depending on the OS version/device you have - but is typcially around a
few
> >kilobytes in size. So if you have something like this:
> >
> >Char BigLocalVar[ 10000 ];
> >
> >you'll likely get the error.
>
> C subroutines do not initialize their local variables.  So you won't
> get a stack
> error on the above...    until you start writing to elements of the large
local
> array (or when reading elements on a system with memory page protection).
>
> pref resource 0 allows you to increase the size of an applications stack.
Try
> making it larger and see if your problem goes away.  I think there's a
limit
> on the maximum stack size though, so at some point you may have to change
> your code so that the subroutines contain smaller local variables.
>
>
> Ron Nicholson
> HotPaw
>    <http://www.hotpaw.com/rhn/hotpaw >
>
>
>



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

Reply via email to