Subject: Re: Simple question about how to increase stack size
From: "Jan Slodicka" <[EMAIL PROTECTED]>
Date: Thu, 11 Aug 2005 23:29:38 +0200
An example what could cause "Invalid chunk ptr":
MemPtrFree( 0x12345678 ) ; // trying to free a non-alocated chunk
You probably are trying to free a freed chunk. A bit of defensive
programming works wonders here.
if (memPtr != NULL ) {
MemPtrFree (memPtr);
memPtr = NULL; // always set a freed pointer to NULL
}
The other likely culprit is you are stomping over memory, for example
writing 33 bytes to a 32 byte character array.
> Also if the stack size is too small can you tell me how I can increase it?
Can't be done, I think.
Sure it can, but you aren't having stack problems, you are having
heap problems.
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/