I wrote some debugging code to look at the objects on a form
and ran into this problem: fatal alert object #0 not found on form.
I am using palmOS40-eng-colordbg.rom in the Emulator. Have
also tried a 41 rom with the same result.

This problem initially came up on a form in which I created some
gadgets dynamically, but now I move the code to a form that
has plain old buttons and works fine, and still get the alert.

in the following frmP is returned from frmGetActiveForm().

UInt16 numObjs = FrmGetNumberOfObjects(frmP);
        for (UInt16 i = 0; i < numObjs; i++)
        {
                theIndex = FrmGetObjectIndex(frmP, i);
                theID = FrmGetObjectId(frmP, theIndex);
                theType = FrmGetObjectType(frmP, theIndex);
        }


Dennis Christopher



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

Reply via email to