Skip navigation.
 
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved.
FROM : Jens Alfke
DATE : Fri May 16 23:25:17 2008

On 16 May '08, at 1:36 PM, <email_removed> wrote:

> I got this to work!

...
>    NSError **myError;
>    NSHTTPURLResponse **serverResponse;

...
>        self.smsXMLString = [NSString 
> stringWithContentsOfFile:smsXMLPath encoding:NSUTF8StringEncoding 
> error:myError];


If that's not crashing, it's only because it never got an HTTP error. 
Someone else already pointed out to you that the those types are 
wrong. What your code will do if an error occurs is try to write the 
NSError to a random memory location, either crashing or corrupting 
your state. Go and look up the earlier message if you want to see how 
to fix it.

—Jens

Related mailsAuthorDate
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved. fclee May 16, 22:36
mlRe: Cocoa: How do I send/receive XML within a HTTP connect? -- Solved. Jens Alfke May 16, 23:25