Hi! In my current project I'm using almost the same code without any problems.
>>form.c, line 2172, invalid index Sounds as if FrmGetObjectIndex were returning -1 (frmInvalidObjectId) >>FrmSetGadgetHandler(frmP,FrmGetObjectIndex(frmP,ToolbarGadget) >>(void*)toolbarGadgetHandler); >>Anyone have any ideas? Un-nest the function calls, then check: 1. is FrmGetObjectIndex returning sth. reasonable? 2. is frmP valid (use FrmValidatePtr) ? 3. if frmP is valid, does it refer to right form? If all this does not help. What device/simulator do you experience the crash on? Harry -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
