I am having a strange problem with WinDrawBitmap.

I have a section of code that looks like this:

-----------
MemHandle       iconH = NULL;
UInt16          id;
BitmapType*     iconP;

iconH = DmGet1Resource(iconType, id);   // find DB's icon
iconP = (BitmapType*) SynMemHandleLock(iconH);
WinDrawBitmap(iconP, x, 0);
-----------

I have previously set the screen depth to the highest the device will 
allow.  (on a Plam V with Palm OS 3.3, that's 4 bit, 16 grays).

The WinDrawBitmap call is generating an error message on the Emulator 
"...reading directly from memory manager data structures..."

This only happens when I am using a Palm V with a Palm OS 3.3 ROM and 
I compile using the 3.5 headers.

It works on a IIIc, Vx, III (in 1 bit mode), Visor, etc.

In a previous version of my application, which was compiled with the 
3.1 headers, I could set the screen depth on a Palm V (OS 3.3) to 4 
bit with another application and the bitmaps would draw in 4 bit mode 
just great.  No crashes.

So this is strange... any ideas?  Any help is greatly appreciated.

Dan Hewins
Synergy Solutions, Inc.
http://www.synsolutions.com/
A BarPoint.com Company
http://www.barpoint.com/

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

Reply via email to