Richard,
Thank you for your suggestion. I believe I did turn the optimization off.
In Target Settings Panels/Code Generation/Global Optimization, I have the
slider bar all the way to the left which I believe it is Optimization Off
(or level 0). On far left of the slider bar is Optimizatio and far right
is Level 4. I don't see Optimizations Off in the panel.
By the way, I have CodeWarrior 6, SDK 4.0, PalmOS40-en-v-dbg.rom.
-Elizabeth
Richard Burmeister
<[EMAIL PROTECTED]> To: Palm Developer
Forum
Sent by:
<[EMAIL PROTECTED]>
bounce-palm-dev-forum-8072@news. cc:
palmos.com Subject: RE:
FrmInitForm Returns frmP->formId =
0
07/23/01 01:54 PM
Please respond to Palm Developer
Forum
> From: [EMAIL PROTECTED]
>
> How do I turn off the optimizations?
In CodeWarrior, open the project Settings panel (Edit | {projectname}
Settings...), then highlight "Global Optimizations" under Code Generation.
On the right hand side of the panel, move the slider to "Optimizations
Off".
>
> For your first question, frmP->formId = 0 was after executing line#2.
>
That doesn't say how you determined that it was 0. I assume you were
looking at it in the CodeWarrior debugger, because you didn't show any code
that displayed that value (e.g., with WinDrawChars or FrmCustomAlert,
etc.).
IF you are looking at the values of variables during a debugging session,
then all optimizations must be turned off or you are not guaranteed to see
the correct value of any particular variable -- the compiler might be using
the same space to store more than one variable. That's why I suggested
turning off all optimizations.
If that doesn't solve your problem, it's always possible that your form is
corrupt, you've mangled the stack, or something else nasty is going on. I
don't have any other suggestion at the moment.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/