Question
OK to call gotoXYZScreenoTransition() from Model tick()?
Is it OK to call one of the app()->gotoXYZScreenoTransition() functions from inside the Model tick()?
The reason I'm asking is that I just got a weird exception on this code that is inside Model tick():
case (newData)
{
if (modelListener != 0)
{
modelListener->notifyDataChanged();
}
}
Exception was when it was calling the notifyDataChanged(). There wore 2 more items on the stack, but Visual Studio didn't know to decode them so they were just an address in the call stack. Either something in my code corrupted the modelListener and it was pointing to a bad value, or I called gotoXYZScreenoTransition() when I shouldn't have it changed the modelListener value while I was in the middle of calling it.
I got the idea for the above from
