thanks, Jan. I have employed that pragma and it has proven useful,
though has not turned the problem up here. I am doing a lot of
quasi-html rendering and event handling outside of normal "event
handlers". There are a few instances where I don't have an active form
and I believe that may be part of the problem. If I perform my html
rendering/event handling and there is a form "underneath" I don't get
the errors - so far. There is a bunch to wade thru yet so it is not
conclusive, but the likely culprit. thanks again.
Frank
Jan Slodicka wrote:
While I cannot respond the question, I think that analyzing of the stack
requirements is very useful and not that difficult.
In case you use CW, you may insert the statement
#pragma warn_stack_usage 100
(or another value) into some central header (e.g. prefix file).
Then recompile and analyze the listed functions. For example you may put
breakpoint on the function entry point and look to the stack shown in the
debugger.
This way it is often possible to discover the worst paths and then take
adequite measures, for example replace arrays allocated on the stack by heap
pointers.
With best regards,
Jan Slodicka
Resco, Palm Division
----- Original Message -----
From: "Frank Ableson" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Tuesday, July 25, 2006 4:24 PM
Subject: SMS memory/stack requirements
I have a large application which consumes a significant amount of memory
at times ....
When I receive a text message (SMS) and the OS shows (attempts to
show...) the text message in a modal dialog, my device resets.
I have tested this on a number of devices:
600's and 650's reset, while 700's do not. My initial theory is that
there is insufficient stack space to create the popup and the
consequences are the soft reset ... FrmInitForm() returning NULL or
equivalent and then subsequent use of the null ptr causing the crash.
Does anyone have a feel for the amount of stack space/memory required to
permit this sms notification to occur safely?
My other thought is to register for and deftly handle the SMS
notification, but would prefer to not go there if I can avoid it.
Thanks for any input you may have to offer.
Frank
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
|