Hi, I have not doone any Palm OS programming previously and just down loaded the Palm OS Developer suite. I have been experimenting with some of the functions with an aim to get the the pointer to an edit box at resource 1611 on my main form.
I keep getting a memory error when the application is run on the emulator or simulator.
emulator error
".......just read from memory location 0x00007720 which is an un allocated chunk of memory"
This is the offending piece of code.
FrmSetActiveForm(pForm); field = FrmGetObjectPtr(pForm,1611);
Has anyone got any suggestions?
Rgds Tracy
Yes, FrmGetObjectPtr needs the index of the control in the form, not the ID. There is another call FrmGetObjectIndex (or something like that) which resolves the index for you. So it will look like:
field = FrmGetObjectPtr(pForm, FrmGetObjectIndex(pForm, 1611));
Henk
-- ------------------------------------------------------------------------- Henk Jonas Palm OS Â certified developer
[EMAIL PROTECTED] www.metaviewsoft.de -------------------------------------------------------------------------
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
