Page 1 of 1

PostPosted: Fri May 25, 2001 2:17 pm
by wolf

I am using Pocket Toolbox to create a scrollable map using a larger than the screen bitmap. This bitmap is put into a scratch buffer and with the CopyRect command part of this buffer is copied to the display buffer.
The map is accessed from a main menu. The first time the map screen is entered from the menu all is going well. However after returning to the main menu and accessing the map a second time the screen locks up in the emulator and I get the following error message:
PocketC 4.0.3rt has just read from an unallocated chunk of memory.

Does anybody know why this is and what the solution is. I presume it has something to do with the scratch buffers. I tried using FreeBuf(0); to free the memory allocated to the buffers, but this didn't help.

Hope somebody can help

Yours Sincerely


PostPosted: Mon Sep 10, 2001 8:51 pm
by Plasma
This is something I would like to do, so someone, please! <img src=icon_smile.gif border=0 align=middle>

-Steve Riekeberg
"To err is human, but to really screw up requires a computer." -Unknown

PostPosted: Tue Sep 11, 2001 12:48 am
by jstadolnik
See the map_demo.c example included in the PToolboxLib release.