Hi,
I use tiles of 8x8 to draw a game screen and everything works great
on emulator/simulator.
But on a real palm (Sony T625C), the device crash with Fatal Exception
error.
Here is the code i use, if i add the SysTaskDelay(1) it works on real
device, if i remove
them the device crashes :
void Draw::Tile(UInt8 number) {
UInt32 x = (_position.x + _offset.x);
UInt32 y = (_position.y + _offset.y);
UInt8 *dst = sysvid_fb + x + y * 320;
UInt8 *src = (UInt8 *)BmpGetBits(tiles_data[_tilesBank][number]);
MemMove(dst + 0, src + 0, 8);
MemMove(dst + 320, src + 8, 8);
MemMove(dst + 640, src + 16, 8);
MemMove(dst + 960, src + 24, 8);
SysTaskDelay(1);
MemMove(dst + 1280, src + 32, 8);
MemMove(dst + 1600, src + 40, 8);
MemMove(dst + 1920, src + 48, 8);
MemMove(dst + 2240, src + 56, 8);
SysTaskDelay(1);
_position.x += 8;
}
Any idea ? i have the same problem with mutiple call to HRWinScrollRectangle
Thanks
Chris
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/