When is this call done? Don't know about more recent versions of PalmOS, but
I recall that with PalmOS 4.x FrmGetObjectIndex doesn't return a valid index
until the form is done loading.  

This is from memory; it was a while ago.  I recall that some form functions
could be called before the form was loaded, but for those that required an
index, I needed to wait until afterwards.

HTH,
Remi.


-----Original Message-----
From: Tam Hanna [mailto:[EMAIL PROTECTED] 
Sent: June 9, 2008 9:51 AM
To: Palm Developer Forum
Subject: Bogus Invalid Index error

Hello Folks,
currently testing a Palm Os app, and made the unfunny discovery that
assigning an extended gadget a handler dies with the message 

form.c, line 2172, invalid index

The code line that's affected is this:
FrmSetGadgetHandler(frmP,FrmGetObjectIndex(frmP,ToolbarGadget),(void*)toolba
rGadgetHandler);

I have already checked the control ID and the pointer, and they all are
valid. Nevertheless, the app dies whenever the call runs..

Anyone have any ideas?

Best regards
Tam Hanna


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe,
please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to