I previously wrote :

> I display a map form in which I draw text locations and a bitmap marker
> next to them. I use FontBucket to enjoy a smaller font, and free the
> font after the map is displayed. The marker bitmap is loaded from the
> application resources and released after the map is drawn. Everything
> goes fine, but if I change the font while the form is displayed, when I
> redraw the form, reloading the bitmap from the application resources
> returns a null handle; in all other cases when I redraw the map and thus
> reload the bitmap, everything is fine too; the problem only occurs when
> I change the font, as if it made my bitmap resource unreachable. I
> commented out the bitmap load/display, and everything works. What can go
> wrong?

My understanding is that after changing the font, the first open resource database 
could be that of FB fonts, not that of my
application, which would cause a problem with a subsequent call to DmGet1Resource. So 
I replaced this call by DmGetResource and
everything's fine.


--
Luc Le Blanc


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

Reply via email to