[Scummvm-devel] Re: Port status?
Chris Apers
chrilith at hotmail.com
Wed Jul 23 15:03:21 CEST 2003
>
> For me it's vital that at least audio resources are properly closed. The
> MIDI driver never got destructed, so eventually I inserted a hack to
delete
> it myself in the end. Now it seems to be cleaned up, and that was the
> reason for a crash I had (freed twice).
I suggest you to take a look at the PalmOS port.
On palmos the exit() system function doesn't exist and i need to exit
properly
deleting every objects etc... this is why i added the _quit var in the Scumm
object.
So in palmos, when i exit, i reach the last brace of the main() function :
almost every objects are killed and the MIDI driver is closed.
Let me know if you need help to understand what it's exactly done to exit
with this port.
>
> So now that I removed the hack suddenly I had the problem with Simon
> that notes sounded endlessly after quitting and no other programs could
> playback any MIDI until a reset because there it's still not freed (it's
> supposed to be deleted with the SimonEngine, but SimonEngine object is
> never deleted) ...
>
Chris
More information about the Scummvm-devel
mailing list