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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:22:57+00:00 2026-06-02T16:22:57+00:00

For the following code in an iPad application: NSString *urlString = @http://www.domain.com/file.xml; ASIHTTPRequest *request

  • 0

For the following code in an iPad application:

NSString *urlString = @"http://www.domain.com/file.xml";
ASIHTTPRequest *request = [[ASIHTTPRequest alloc] initWithURL:[NSURL URLWithString:urlString]];
[request startSynchronous];

I’m getting a stringByAppendingString nil argument error. The issue is that this error is only thrown when the app is started in landscape orientation, not portrait.

Not sure if it’s relevant, but the error is thrown from the main thread, while the code above is running in another thread.

Where should I be looking for bugs here? I’ve started with hunting for occasions where stringByAppendingString might be used, but simply can’t find any (doesn’t mean they’re not there though – I may just not understand how this is being used behind the scenes). There’s nothing that differs between the landscape and portrait launches, apart from the orientation of a splash UIView, which seems to be working fine. Also, the URL I’m using is valid as far as I can tell (needless to say, the URL in the example is representative, but not the actual URL).

Thanks for your help.

  • 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-06-02T16:22:57+00:00Added an answer on June 2, 2026 at 4:22 pm

    Thanks to Joachim’s suggestion of setting a symbolic breakpoint on obc_exception_throw, I figured out that: 1. the app is always launched in portrait, and then willAnimateRotation… is called (which, it turns out, is standard – silly me) 2. the existing implementation of willAnimateRotation… assumed that all content was loaded, and so was calling a content management method which passed a nil argument (since content wasn’t yet loaded).

    So, lesson here is that app ALWAYS launches in portrait, and then any loaded views are auto rotated afterwards if the device is in landscape.

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

Sidebar

Related Questions

The following code: import simplejson,urllib,urllib2 query=[u'नेपाल'] urlbase=http://search.twitter.com/search.json values={'q':query[0]} data=urllib.urlencode(values) req=urllib2.Request(urlbase,data) response=urllib2.urlopen(req) json=simplejson.load(response) print json
I have following code which works fine in iPhone application but in iPad I
Apple advises using the following code to detect whether running on an iPad or
In the iPad Programming Guide, it gives the following code example for specifying the
I am currently running the following code as part of a simple test iPad
In my iPad application, I'm letting the user select an image using the following
I'm trying to add a UIButton to UITabBar in my iPad application with following
The following code works as expected on iOS4.3 iPhone and iPad, and iOS5 iPhone,
iPad application I have a large text file which I want to divide into
// following code works fine n open notepad... class demo { public static void

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.