DarkknightXC
Junior Member

Posts: 121
Registered: 05-02 |
Ajapted said:
This error may have been a fluke. There is a race condition in I_MUSStop: in between the song data being deleted and the pointer set to NULL it's possible for I_MUSTicker to be called and read some bad data.
That doesn't necessarily explain what threw the exception. I suggest add a catch for std::bad_alloc into e_main, maybe some other standard ones too (bad_exception, bad_cast, logic_error, runtime_error).
Agreed. Best to fix the bug in I_MUSStop and then handle the standard exceptions.
Suggest to Joe that he disables music with '-nomusic'.
|