Reply To: Getting rid of flashing red banner

Home Forums OpenEars Getting rid of flashing red banner Reply To: Getting rid of flashing red banner

#1020332
Halle Winkler
Politepix

That’s OK, but it’s a view controller that you just created at a brand-new memory address, so even if it has a PocketsphinxController, it can’t be the same PocketsphinxController that is already running. You have to tell the PocketsphinxController which is running to stop. The time that you want to do that is before exiting the view controller it is instantiated in, so that it is possible for the view controller it is instantiated in to be released without ending up with a dangling pointer that can’t be released containing a PocketsphinxController that can’t be stopped.