Reply To: Malloc_error when changing views in UINavigationController

Home Forums OpenEars plugins Malloc_error when changing views in UINavigationController Reply To: Malloc_error when changing views in UINavigationController

#1018398
tbeagley
Participant

I was really hoping to push this out today. I didn’t realize you were in Germany.

Here’s one of the buttons that would stop speech:

- (IBAction)btnBrowse:(id)sender {
    
    [self.fliteController stopSpeaking];
    
    //go back to a url where we get some data from JSON
    NSString *website = [NSString stringWithFormat:@"...some URL"];
    NSURL *url = [NSURL URLWithString:website];
    NSURLRequest *requestURL = [NSURLRequest requestWithURL:url];
    [webBoxPDF01 loadRequest:requestURL];
    
}

that stops the speech, but when I exit that view using the navigation controller’s back button it crashes.

And I’ve even taken to adding this to my .mm file for the view that uses fliteController:

- (void)dealloc {
    [self.fliteController stopSpeaking];
}

The voice stops speaking, but again, the app crashes.