> My app displays photos of the patients in our medical records database. > If no image of the patient exists, I put up a stock image that is part > of the app. The program displays the image fine on POSE running m505, > m500, and Vx ROMs. It even runs fine on my m500 device. On the Vx > device it crashes when I call WinDrawBitmap() for the stock image but > not when it pulls the patient images out of the database.
PalmOS 3.5+ could handle a 8bpp image and convert it to the appropriate bit depth that the device was running. the conversion is normally shite anyhow - but, this did work. > The Vx device is running OS 3.3 and the Vx ROM on POSE is running 4.1. > I'm not sure how the device came to be running 3.3, to be honest. It's > been reflashed a few times, dropped in a creek, and generally not > treated very well. That's why it's my "spare Vx". bitmap families work from 3.0+ - and, the general rule of thumb is that if you are going to have a bitmap - provide the right depth for the bitmap. dont provide only 8bpp if you intend to run on a 4bpp unit. unless, of course, you want to do translation from 8bpp -> 4bpp or whatever at runtime (which, some of us like to do) :P > So, I guess the moral of the story is, if you are targeting OS 3.3 > devices in addition to color devices, you might check that all of your > bitmap families are correct. you should always have a 1bpp bitmap, even if it is a 1x1 image. that way it will not crash, it'll just display a pixel :) --- Aaron Ardiri [EMAIL PROTECTED] CEO - CTO +46 70 656 1143 Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
