At 8:08 PM -0700 8/25/02, Ron Nicholson wrote: >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...
Sure you will. The original poster was using the Palm OS Emulator (Poser) when encountering the error. Poser will report the problem as soon as the space is allocated on the stack (that is, when the stack pointer is decremented below the lowest address allocated for it). Actually accessing the array is not required (except insofar as having an actual reference to the array is required so as not to dead code strip the array). -- Keith Rollin -- Palm OS Emulator engineer -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
