0
0

on the cleanup phase i do this:
[code:1ain9kvw]
int numplaying = 1;
while( numplaying )
{
pSystem->getChannelsPlaying( &numplaying );
int numevents = 0;
pEventSystem->getNumEvents( &numevents );
for( int a = 0; a < numevents; a++ )
{
Event *pEvent = 0;
pEventSystem->getEventBySystemID( a, 0, &pEvent );
pEvent->stop( true );
}
//
pEventSystem->update();
//
Pause(1);
}
[/code:1ain9kvw]

however, sometimes this keeps looping and crashes if i call pEventSystem->unload(). shouldn’t pEvent->stop( true ) force stop??

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.