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

2009-04-08 Thread David Paeme
Hi all, I'm writing an application that accesses a http server via NSURLConnection's sendSynchronousRequest method, and it keeps crashing on me with an EXC_BAD_ADDRESS signal, without ever reaching the server. Here's sample code (very similar to what's in aaron hillegass' book):

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

2009-04-09 Thread david paeme
000 On 08 Apr 2009, at 23:45, Greg Parker wrote: On Apr 8, 2009, at 5:55 AM, David Paeme wrote: I'm writing an application that accesses a http server via NSURLConnection's sendSynchronousRequest method, and it keeps crashing on me with an EXC_BAD_ADDRESS signal, without eve

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

2009-04-09 Thread david paeme
parsing in the NSURLConnection - as both strings should be quite equal, no? On 09 Apr 2009, at 20:56, Greg Guerin wrote: david paeme wrote: This might be more interesting... looks like the thing some crash down in the bowels of LocaleGetValue? Locale information is often taken fro

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

2009-04-10 Thread david paeme
On 10 Apr 2009, at 02:21, Greg Guerin wrote: 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 integerF

Re: substring (or) CDATA XML PARSING?!

2009-04-10 Thread david paeme
how about using some of the NSXML components? check http://developer.apple.com/documentation/Cocoa/Conceptual/NSXML_Concepts/index.html On 10 Apr 2009, at 14:31, developers mac wrote: Hi there, I went through the various substring methods like NSString *str1 = [theResponseString substringF