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 6474775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:37:39+00:00 2026-05-25T06:37:39+00:00

My app gets some json data from a server and it uses a NSMUtableData

  • 0

My app gets some json data from a server and it uses a NSMUtableData object to store these data.
But debugger is reporting the following error:

[NSCFString setLength:]: unrecognized selector sent to instance

and the debugger highlighted the following line (in connection didReceiveResponse method):

[rqst_data setLength:0];

rqst_data is declared as NSMutableData in header file.

Thx in advance for your kind help,

Stephane

  • 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-25T06:37:40+00:00Added an answer on May 25, 2026 at 6:37 am

    It seems your rqst_data variable gets released. Make sure you have properly allocated it. If you have declared @property for it you better use the variable as self.rqst_data.
    You can use retain and in case of IOS 5 strong in property declaration.

    You can track if any variable gets released via setting NSZombieEnabled to YES. With zombies enabled, messages to deallocated objects will no longer behave strangely or crash in difficult-to-understand ways, but will instead log a message and die in a predictable and debugger-breakpointable way.
    You can set NSZombieEnabled by the following steps.

    Select Product from the menu bar above. Keep alt/option pressed and select “Test…” or “Run…”.

    1.
    Go to the Arguments tab, and add NSZombieEnabled YES in the “Environment Variables” section.

    OR

    2.
    Go to the Diagnostics tab, and check Enable Zombie Objects in the “Memory Management” section.

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

Sidebar

Related Questions

I am developing an Android App that gets some data from a web server,
I have an iOS app which gets some JSON from a server (in the
My App gets a lot of URLs back via JSON data. Some of the
I have the following scenario: My app gets some data from the command line.
I have a Django app that gets it's data completely from an external source
I have a web-app-database 3 tier server setup. Web requests data from app, and
I have an app that hits a REST service, gets some json and then
I have an app [iphone], that sends to a server some times [using json],
I have an app in android in which I return some data from facebook
I have made an app that gets an array of addresses from a web

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.