From: "Sebastian Noack" <[EMAIL PROTECTED]>
> I have a strangely problem. When I call the FrmGetObjectPtr-Function, I
get an "index out of range" error message from the Simulator. However, I
don't try to access an array on this place in code and when I use the
debugger to locate the fault, the error is vanish into thin air.
>
The 'index' being referred to is the parameter passed to
identify the object wanted (objIndex in the function
API reference).

The usual reasons for this are:
- passing an object id instead of an index
(have you called FrmGetObjectIndex(id) to retrieve
the index for this function?)
- copying code from another form and accidentally
leaving one of the original object id's in place.

Chris Tutty


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

Reply via email to