Hi all,
I'm running into a runtime error when trying to retrieve the current owner
ID of a newly created BitmapPtr. The code is pretty straightforward, so I'm
wondering if there are some underlying assumptions which I'm missing.
Basically:
UInt16 bmerr = 0;
BitmapType *newBm = BmpCreate(20, 20, 16, NULL, &bmerr);
if (newBm)
{
UInt16 ownerID = MemPtrOwner(newBm);
}
when MemPtrOwner gets called, PalmOS displays a dialog box stating:
"An error occurred in the application you are using. Note the error code
and contact the developer of this application. (Sys 0505)(0,23)"
(newBm looks to be valid, and bmerr is 0.) Does anyone know what might be
causing this?
thanks!
-- Chris
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/