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

  • Home
  • SEARCH
  • 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 1086475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:49:05+00:00 2026-05-16T22:49:05+00:00

NSURL *xmlUrl = [[NSURL alloc] initWithString:@http://www.xml-document.xml]; NSString *converted = [[NSString alloc] initWithContentsOfURL:xmlUrl encoding:NSISOLatin1StringEncoding error:nil];

  • 0
 NSURL *xmlUrl = [[NSURL alloc] initWithString:@"http://www.xml-document.xml"];
 NSString *converted = [[NSString alloc] initWithContentsOfURL:xmlUrl encoding:NSISOLatin1StringEncoding error:nil];

 converted = [converted stringByReplacingOccurrencesOfString:@"&" withString:@"&"];
 converted = [converted stringByDecodingXMLEntities];

The last line takes up 98.3% of the memory in Instruments > Leaks.

And it’s smashing my Log window with:

__NSAutoreleaseNoPool(): Object 0x6d10ba0 of class UIView autoreleased with no pool in place - just leaking

Why? I think that method has worked good before…

  • 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-16T22:49:05+00:00Added an answer on May 16, 2026 at 10:49 pm

    After some more googling I found that it has to be because of these methods:

         [self performSelectorInBackground:@selector(load) withObject:loadingIndicator];
     [self performSelectorInBackground:@selector(getEvents) withObject:nil];
    

    So I’ve tried allocating an NSAutoReleasePool and the release it after the work is done in the methods.

    Now i receive EXC_BAD_ACCESS message.

    This did not happended before I decided to run those methods in the background. So what’s the problem here?

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

Sidebar

Related Questions

when I call -(IBAction)goback:(id)sender { NSURL *xmlURL=[NSURL URLWithString:@http://demo.komexa.com/sicherungsbereich.xml]; NSURLRequest *request = [NSURLRequest requestWithURL:xmlURL cachePolicy:NSURLRequestReloadIgnoringCacheData
I'm currently doing this: NSMutableDictionary *dict = [[NSDictionary alloc] initWithContentsOfURL: [NSURL URLWithString:@http://mysite/mypage.php]]; Which is
I am really struggling on this. I have an XML feed: <?xml version=1.0 encoding=ISO-8859-1?>
I've had significant success with NSURL, NSURL[Mutable]Request, NSURLConnection with my iPhone applications. When trying
This piece of code: - (IBAction) getXML { goButton.enabled = NO; [self performSelectorInBackground:@selector(parseInBackground) withObject:nil];
I have a strange issue, when it comes to parsing XML with NSXMLParser on
i try to parse within my iPhone SDK 4 http://de.news.search.yahoo.com/news/rss?p=iphone&ei=UTF-8&fl=0&x=wrt there are some german
I will try to explain shortly what my problem is... I'm loading an XML
I seem to have stumbled over a problem regarding saving an xml file from
I have an NSURL object which gets data from my site, based on a

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.