Bleaties!
I'm writing a couple of games (http://www.llamasoft.co.uk if you're curious), and I want to release the PC versions that run in a resizable window as well as the actual PPC games.
The games work fine on the PC, except that occasionally, when closing the window, one receives the message
HEAP[HoverBovver.exe]: Heap block at 00E80040 modified at 00E84088 past requested size of 4040
In attempting to track down the cause of this naughtiness, I ascertained that the knicker-twisting occurs when the PTC console is deleted. I also determined that the error only occurs if there have been many prolonged key-presses during the game (in the lawnmower game, for example, the cursor keys are held down for fairly long periods whilst mowing the lawn).
I thought that maybe the PTC console was buffering-up the keypresses, nothing was consuming them, and that therefore maybe after a while the buffer was overflowing, hence the naughtiness. I added a little bit of code to consume any buffered keypresses once per frame:
but it doesn't fix the problem, there's still the same heap naughtiness when the console gets deleted, but only if there have been long key-presses during the game.
Anyone encountered aught similar? Any ideas gratefully considered...
Cheerz...
\
(:-) - Yak
/
I'm writing a couple of games (http://www.llamasoft.co.uk if you're curious), and I want to release the PC versions that run in a resizable window as well as the actual PPC games.
The games work fine on the PC, except that occasionally, when closing the window, one receives the message
HEAP[HoverBovver.exe]: Heap block at 00E80040 modified at 00E84088 past requested size of 4040
In attempting to track down the cause of this naughtiness, I ascertained that the knicker-twisting occurs when the PTC console is deleted. I also determined that the error only occurs if there have been many prolonged key-presses during the game (in the lawnmower game, for example, the cursor keys are held down for fairly long periods whilst mowing the lawn).
I thought that maybe the PTC console was buffering-up the keypresses, nothing was consuming them, and that therefore maybe after a while the buffer was overflowing, hence the naughtiness. I added a little bit of code to consume any buffered keypresses once per frame:
- Code:
while (console->key())
{
Key key = console->read();
}
but it doesn't fix the problem, there's still the same heap naughtiness when the console gets deleted, but only if there have been long key-presses during the game.
Anyone encountered aught similar? Any ideas gratefully considered...
Cheerz...
\
(:-) - Yak
/