Ok, I've got a small app that double buffers some screen activity by using
offscreen windows. Works great in the emulator on OS 3.3 and less. But as
soon as I run it on a 3.5 device, I get random hangs, bus errors, etc. Did
something change in OS 3.5 with these windows?
I commented out the WinSetDrawRectangle and WinCopyRectangle calls out and
that seems to fix the problems, so it's obviously related to this.
Is there anything wrong with this type of lines?
offsw = WinCreateOffscreenWindow (160, 140, screenFormat, &error);
onsw = WinCreateOffscreenWindow (160, 140, screenFormat, &error);
rect.topLeft.x = 0;
rect.topLeft.y = 0;
rect.extent.x = 159;
rect.extent.y = 140;
WinSetDrawWindow (offsw);
WinCopyRectangle (offsw, onsw, &rect, 0, 0, scrCopy);
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html