PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Shutdown in StylusDown function

I have acess volatin in GameLoop function after calling Shutdown(); at StylusDown
Code:
void MyGame::StylusDown(Point stylus) {
Shutdown();
}

If I call Shutdown(); in other places(for example at ButtonDown) all works fine.

PS sorry for my english.
set a flag in the stylus function and do the shutdown from your main gameloop. I expect there's a display update happening after the shutdown causing the crash. It's happened to others before. (do a search on this forum to see)