On Thu, 20 Jun 2002, David Fedor wrote: > >Can anyone shed some light on why the following code snippet works fine on > >OS 3.5/4 and crashes on OS 5? What I am trying to do is copy an on-screen > >bitmap region to memory so that I can store it and re-blit it later. > > The problem is that you're assuming that all the data of a bitmap is > contiguous in memory. That isn't necessarily the case: the header of a > bitmap can sometimes be a different memory chunk from the bits that make it > up. The header sometimes contains a pointer to the bits, and sometimes it > follows it directly in memory.
one thing you can assume is that the "bits" of the bitmap are contiguous in memory :) the header and bits are two seperate things, but, as david says - they can be after each other // az [EMAIL PROTECTED] http://www.ardiri.com/ http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
