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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:48:41+00:00 2026-05-15T22:48:41+00:00

I have narrowed down this error (which crashes my app): -[NSConcreteMutableData release]: message sent

  • 0

I have narrowed down this error (which crashes my app):

-[NSConcreteMutableData release]: message sent to deallocated instance 0x6eaed40

to the following code:

emailData = [kmlDoc dataUsingEncoding:NSUTF8StringEncoding];

But, I cannot figure out why this error is being caused? That line is just setting a very large string to an NSData object. I am releasing emailData in the dealloc method.

What is going wrong here?

  • 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-15T22:48:42+00:00Added an answer on May 15, 2026 at 10:48 pm

    You need to take ownership of the object:

    emailData = [[kmlDoc dataUsingEncoding:NSUTF8StringEncoding] retain];
    

    Or using retain/copy properties:

    self.emailData = [kmlDoc dataUsingEncoding:NSUTF8StringEncoding];
    

    Remember that you explicitly have to take ownership for returned objects from methods that contain neither new, alloc, retain or copy in their name as they return autoreleased instances.

    See the Memory Management Guide for more.

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

Sidebar

Related Questions

I have narrowed down my problem to the mysql_connect call I am doing in
I have narrowed down my issue to a derived classes copy constructor, but I
With Java and Perl background, I have narrowed down the web framework choices to
I have some rather odd behavior in my D program that I've narrowed down
I have a problem with an SQL query and i've narrowed it down to
have written this little class, which generates a UUID every time an object of
A little background on this error: The customer getting this error message in their
I have a NET 2.0 Winforms app based partly on this code . It
I got this error when trying to Archive for distribution. My app builds fine
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=

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.