I'm doing this during a frmOpenEvent event. I'm getting the form pointer
from FrmGetActiveForm().
Steve
<[EMAIL PROTECTED]> wrote in message news:33464@palm-dev-forum...
>
>
>
> How are you getting the form pointer to pass to FrmHandleEvent? Could it
be a
> value you cached before calling FrmNewBitMap (which could invalidate the
cached
> value)?
>
> -- Keith
>
> "Steve Achelis" <[EMAIL PROTECTED]> on 12/18/2000 05:00:37 PM
>
> Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
>
> Sent by: "Steve Achelis" <[EMAIL PROTECTED]>
>
>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> cc: (Keith Rollin/US/PALM)
> Subject: FrmNewBitmap gives "...has just read directly..."
>
> 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(). I'm lost as to what I'm
> doing wrong.
>
> Ideas?
>
> Thxs!
>
> Steve
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/