"Oliver Steinmeier" <[EMAIL PROTECTED]> wrote
> eventP->data.ctlSelect.controlID.  This works fine for
> all three buttons in Palm OS 3.0 or higher.  With Palm
> OS 2.0 (debug version, running in POSE 3.3) I get the
> expected IDs (1201 and 1202) for the first two
> buttons, but the value returned for the third button
> is 65215, not 1215!
>
Most form problems of this sort are caused by memory corruption.
1215 = 0x4BF and 65215 = 0xFEBF.   The FE that the first byte
of the ID has been changed to is one of the special values written
by POSE's memory assistance functions to indicate that memory
has been freed or cleared (or something - it's documented
somewhere).

What you want to do is debug the program again and look at the
data for the form.  If the properties of the form itself are OK
(xy position and ID are usually trashed if the form Title over-runs)
look at the controls.  This is an array and in CW6 you used to
have to right click the objects item and select 'as array' to see the
items.  You're possibly looking for a field that has been told to
use the object initial text as a buffer and has been edited (or
something) - the advice gets vague here :-)

What you're looking for is a clue as to where the corruption started.
Look at the memory surrounding that object to see the total size of
the block of FE's - this might help identify the problem.

Chris Tutty




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

Reply via email to