Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Error "Stop used in callback"

1 replies · 1,325 views · Started 11 December 2004

After playing sound I want to exit of a program but I have the following error: Stop used in callback. Whats the problem and how can I solve it ?

The mediaplayer uses callbacks to notify when a file has been played. It is not allowed to quit the program in a callback (you cannot do this in a callback for a CBA button either for example).

To work around this, set a flag to quit the program and check this flag in your main message loop. An example of how to do this (exit the program from a CBA button click) can be found in DemoOPL included in the opl developer pack found on opl-dev.sourceforge.net