Interrupted by SIRI before registering interruption callback.

2014-10-28 Thread Beinan Li
Hello CocoaDev: My app can be interrupted by SIRI before registering an interruption notification using AVAudioSession. The route-change notification is not registered at the time either. The app needs to tell the difference between waking up from SIRI's interruption and something else. So I

Re: Interrupted by SIRI before registering interruption callback.

2014-10-28 Thread Beinan Li
, Beinan On Tue, Oct 28, 2014 at 3:28 PM, Beinan Li li.bei...@gmail.com wrote: Hello CocoaDev: My app can be interrupted by SIRI before registering an interruption notification using AVAudioSession. The route-change notification is not registered at the time either. The app needs to tell

Re: Crash with ARC enabled on Xcode 6.1

2014-10-27 Thread Beinan Li
again for the help. Thanks, Beinan On Fri, Oct 24, 2014 at 5:10 PM, Glenn L. Austin gl...@austinsoft.com wrote: On Oct 24, 2014, at 11:44 AM, Beinan Li li.bei...@gmail.com wrote: BTW, simply changing the offending dictionary syntax to using the old API instead of the literals didn't help

Re: Crash with ARC enabled on Xcode 6.1

2014-10-24 Thread Beinan Li
object. If it did look the appropriate solution then I'd make sure I was comfortable with my knowledge of the objective-c runtime and the order in which things are called before main is called. Kevin On 23 Oct 2014, at 13:02, Beinan Li li.bei...@gmail.com wrote: Thank you Kevin! I didn't know

Re: Crash with ARC enabled on Xcode 6.1

2014-10-24 Thread Beinan Li
dictionary is created, seems a problem to me. Thanks, Beinan On Fri, Oct 24, 2014 at 2:26 PM, Beinan Li li.bei...@gmail.com wrote: You nailed it, Kevin. Thanks so much! It is due to the static C++ wrapper object. After I moved it to the heap, the crash was fixed. Thanks, Beinan On Thu

Re: Crash with ARC enabled on Xcode 6.1

2014-10-23 Thread Beinan Li
...@yvs.eu.com wrote: On 23 Oct 2014, at 00:34, Beinan Li li.bei...@gmail.com wrote: Oh! I did actually. The method I posted belongs to an ObjC object which is wrapped by a C++ object. That C++ object is a singleton (static). How is this going to affect ARC and why it didn't down-right crash

Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Beinan Li
Hi CocoaDev, Not sure if it's the right list to post to. My iOS app is coded in Obj-C++ with the ObjC part using ARC. It seemed to work well with Xcode 6.0.x and iOS 8.0 SDK. However, on Xcode 6.1 and iOS 8.1 SDK it starts to crash right away. And it stops crashing if I turn off ARC. I wonder

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Beinan Li
Thanks, Beinan On Wed, Oct 22, 2014 at 5:12 PM, David Duncan david.dun...@apple.com wrote: How is your application crashing? On Oct 22, 2014, at 2:10 PM, Beinan Li li.bei...@gmail.com wrote: Hi CocoaDev, Not sure if it's the right list to post to. My iOS app is coded in Obj-C

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Beinan Li
Note, the initial crashing function is merely translating a C++ enum to the AVFoundation builtin constants. Thanks, Beinan On Wed, Oct 22, 2014 at 5:45 PM, Beinan Li li.bei...@gmail.com wrote: It is quite unpredictable. At first it crashes at a dictionary creation line in a .mm

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Beinan Li
before converting to ARC. Thanks, Beinan On Wed, Oct 22, 2014 at 7:16 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 22, 2014, at 14:10 , Beinan Li li.bei...@gmail.com wrote: And it stops crashing if I turn off ARC. I don’t understand this. How do you turn off ARC

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread Beinan Li
, Kevin Meaney k...@yvs.eu.com wrote: Your not creating a static C++ object anywhere are you? One that creates the dictionary before main gets called by any chance? Kevin Sent from my iPhone On 22 Oct 2014, at 22:45, Beinan Li li.bei...@gmail.com wrote: Note, the initial crashing function