Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6762643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:22:50+00:00 2026-05-26T14:22:50+00:00

I’m making this voice recording app, but for some reason it won’t let me

  • 0

I’m making this voice recording app, but for some reason it won’t let me use this delete method without crashing:

-(void)deleteCurrentFiles {
    if(recorder != nil) {
        if([recorder isRecording]) {
            [recorder stop];
        }
        [recorder release];
        recorder = nil;
        [self performSelector:@selector(resetTotalTimeLabel) withObject:nil afterDelay:1.0];
    }

    if(player != nil) {
        if([player isPlaying]) {
            [player stop];
        }
        [player release];
        player = nil;
        currentTime = 0;
        timeSlider.value = 0;
        [self performSelector:@selector(resetCurrentTimeLabel) withObject:nil afterDelay:0.1];
    }

    if(commentRecorder != nil) {
        if([commentRecorder isRecording]) {
            [commentRecorder stop];
        }
    }
}

The declarations of these instances:

AVAudioRecorder *recorder;
AVAudioRecorder *commentRecorder;
AVAudioPlayer *player;

In resetTotalTimeLabel and resetCurrentTimeLabel there is no referance to / usage of the recorders/player.

The error I get is:

-[__NSArrayI finishedRecording]: unrecognized selector sent to instance 0x1b3ba0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI finishedRecording]: unrecognized selector sent to instance 0x1b3ba0'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x35f08c7b __exceptionPreprocess + 114
    1   libobjc.A.dylib                     0x30186ee8 objc_exception_throw + 40
    2   CoreFoundation                      0x35f0a3e3 -[NSObject(NSObject) doesNotRecognizeSelector:] + 98
    3   CoreFoundation                      0x35eaf467 ___forwarding___ + 506
    4   CoreFoundation                      0x35eaf220 _CF_forwarding_prep_0 + 48
    5   CoreFoundation                      0x35ea3f79 -[NSObject(NSObject) performSelector:withObject:] + 24
    6   Foundation                          0x33fd3e6d __NSThreadPerformPerform + 272
    7   CoreFoundation                      0x35ebc8d1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
    8   CoreFoundation                      0x35e8cecd __CFRunLoopDoSources0 + 384
    9   CoreFoundation                      0x35e8c6f9 __CFRunLoopRun + 264
    10  CoreFoundation                      0x35e8c50b CFRunLoopRunSpecific + 226
    11  CoreFoundation                      0x35e8c419 CFRunLoopRunInMode + 60
    12  GraphicsServices                    0x35261d24 GSEventRunModal + 196
    13  UIKit                               0x3386557c -[UIApplication _run] + 588
    14  UIKit                               0x33862558 UIApplicationMain + 972
    15  App Name                            0x00002959 main + 80
    16  App Name                            0x00002904 start + 40
)
terminate called after throwing an instance of 'NSException'

It actually seems to happen to the recorder after this method is called.. So is there anything I should add to this method to make it work?

Any thoughts are greatly appriciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:22:51+00:00Added an answer on May 26, 2026 at 2:22 pm

    sending a message to an object which does not respond to it at a strange point in time is a good indication of a reference count imbalance. run your app with zombies enabled in Instruments. reproduce the crash and see if it is a zombie.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.