• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...


  • Subject: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • From: Greg Guerin <email@hidden>
  • Date: Thu, 9 Apr 2009 17:21:48 -0700

david paeme wrote:

instead of a string (%@) the


%@ is the code for the -description of an object. Strictly speaking, that isn't merely a string, but the result of sending a message.


UInt lastupdate = [userDefaults integerForKey:@"lastDBUpdate"];
NSString *urlString = [NSString stringWithFormat:@"%@?act=upd&lu= % d",WS_URL,lastUpdated];

Either you have typos, or that isn't doing what you think it's doing. The UInt is named "lastupdate", but the arg to stringWithFormat: is named "lastUpdated". Note the difference in case for 'U' and the presence of 'd' for the latter.



i still have no idea why that solved the problem - my hunch would be the string parsing in the NSURLConnection - as both strings should be quite equal, no?

You could NSLog the text, generated both ways, and probably confirm or refute the hunch. Evidence is better than hunches, especially when it's easy to get.


  -- GG

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
      • From: david paeme <email@hidden>
  • Prev by Date: Re: static method to create CABasicAnimation: does this create a memory leak?
  • Next by Date: Re: Sqlite3
  • Previous by thread: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Next by thread: Re: NSURLConnection crashes with EXC_BAD_ADDRESS -- can't find why...
  • Index(es):
    • Date
    • Thread