Using completion listener of media.playSound() crashes on Simulator AND Device on exit / reload

EDIT: After finding that it also crashes the device I think a bugfix is URGENT!
While figuring out what may I have wrong with my table listener I just discovered that your example code for media.playSound() is creating a crash in the simulator for Beta 5 and Game Edition Alpha.

I write about this code:

local onComplete  
onComplete = function(event)  
 print( "sound play ended" )  
 media.playSound( "song1.mp3", onComplete )  
end  
   
media.playSound( "song1.mp3", onComplete )  

Documented here: http://developer.anscamobile.com/content/multimedia-features#Completion_Listener-1

The listener itself works as function and as table listener… but reloading the Simulator leads to a crash which makes it impossible to work with this functionality…

The only “workaround” is to not use it… maybe only use it on the device itself. I did NOT check if it crashes on the device yet to on exit…

Can we have this fixed asap? [import]uid: 6928 topic_id: 1380 reply_id: 301380[/import]

Fixed for beta 7 (missed beta 6 window unfortunately) [import]uid: 54 topic_id: 1380 reply_id: 3923[/import]

@OderWat, Unfortunately the bug crashes the device too. [import]uid: 7559 topic_id: 1380 reply_id: 4006[/import]

@Tom … i know… this is why there is that big bold “edit” line on the top in my OP :slight_smile: [import]uid: 6928 topic_id: 1380 reply_id: 4009[/import]