MediaPlayer.Play问题 [英] MediaPlayer.Play Problem
问题描述
当我调用MediaPlayer.Play时,歌曲播放正常,但调试器将我带到App.ApplicationUnhandledException,即使.Play方法在Try块中也是如此。
When I call MediaPlayer.Play, the song plays fine, but the debugger takes me to App.ApplicationUnhandledException, even thought the .Play method is in a Try block.
有什么想法吗?
推荐答案
你好,
你知道你的十六进制错误代码吗?正在进入例外?我以前见过这种行为。这通常是由于异常发生的地方。如果在UI线程
之外的运行时组件中发生异常,则可以看到此错误。如果你可以从电话中挖出异常,我们可以弄清楚发生了什么。
Do you know the hex error code that you are getting in the exception? I've seen this type of behavior before. This is usually due to where the exception is occurring. If the exception is occurring in a runtime component that is outside of your UI thread you can see this error. If you can dig out the exception from the call we can probably figure out what is going on.
-James
这篇关于MediaPlayer.Play问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!