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
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 mails | Author | Date |
|---|---|---|
| fclee | May 16, 22:36 | |
| Jens Alfke | May 16, 23:25 |






Cocoa mail archive

