>I'm trying to add a bitmap to my form at run time. My code is: > pForm = FrmGetActiveForm(); > pBitmap = FrmNewBitmap(&pForm, BitmapID, BitmapID, 1, 17); >I get the "..has just read directly from an unallocated chunk of >memory" error. >The error occurs in FrmValidatePtr() when called from FrmHandleEvent(). >pBitmap is non-null after calling FrmNewBitmap(). since pBitmap is non-null bitmap is being created. After FrmNewBitmap(..) next statement should be FrmDrawForm(pForm); as bitmap will not visible unles u draw the form. Also, check the usable attribute of the bitmap. It should be 1. Anuradha __________________________________________________ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
