链接:http://stackoverflow.com/questions/13271666/cocosdenshion-i-keep-seeing-exceptions-thrown
问题:We are using CocosDenshion for our games. When we turn on exception breakpoints in xcode we keep getting exceptions from
status = ExtAudioFileSetProperty(extRef, kExtAudioFileProperty_ClientDataFormat, sizeof(theOutputFormat), &theOutputFormat);
In CDOpenALSupport.m
(note that this exception does not crash the game as it is caught by CocosDenshion but still we want to see if we can prevent these exceptions).
答案:Set the exception breakpoint to handle only Objective-C exceptions. This prevents these Cocosdenshion exceptions from being caught by the breakpoint.
I wager they're nothing to worry about, it's been like that for as long as I can remember.
总结:ExtAudioFileSetProperty会抛出异常,但这个异常不会影响程序崩溃,只要忽略这个异常,就可以运行了