Of screen windows cannot be greater than 64k. This limit was supposed to have been removed in 4.0 but I don't think it was. So (Width X Height X bit-depth) > 64K and your out of luck. If you are not using much colour on your screens, then set the bit-depth prior to creating the offscreen window.
Garry On Wed, Feb 19, 2003, Rick Reynolds said: >I'm calling WinCreateOffscreenWindow in order to do some buffering for text >scrolling. What I'm wondering is how I can find out how much space is taken >up by a window. I assume it would have to do with the color depth (as well >as width and height). Does anyone know how this can be determined? > >In my case, I'm attempting to do smooth scroll back of information presented >on the screen. I wanted to provide around 5 screenfuls, so I called > >WinCreateOffscreenWindow(160,800,screenFormat,&err); > >This fails in a "not enough memory" sort of way, so I assume that I'm asking >for too much on one call. I have found that 5 consecutive calls of 160x160 >work fine. I haven't found much in the Palm docs about these sizes. > >Thanks, >Rick Reynolds > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
