FROM : Scott Stevenson
DATE : Sat Apr 28 20:19:41 2007
On Apr 28, 2007, at 10:52 AM, Paul Borokhov wrote:
> My question, however, is how to do this correctly. The current code
> will sporadically cause crashes due to dangling pointer/premature
> release issues. Simply doing [_delegate performSelector:_selector
> withObject:returnXML] will cause huge memory leaks.
> So, what's the proper way of doing this? Thanks!
Where are you crashing?
You have "[self release]" in the -connectionDidFinishLoading
implementation, which seems more likely to me to be a problem than
the returnXML object.
I missed the earlier parts of this thread though, so maybe I'm
missing your point.
- Scott
DATE : Sat Apr 28 20:19:41 2007
On Apr 28, 2007, at 10:52 AM, Paul Borokhov wrote:
> My question, however, is how to do this correctly. The current code
> will sporadically cause crashes due to dangling pointer/premature
> release issues. Simply doing [_delegate performSelector:_selector
> withObject:returnXML] will cause huge memory leaks.
> So, what's the proper way of doing this? Thanks!
Where are you crashing?
You have "[self release]" in the -connectionDidFinishLoading
implementation, which seems more likely to me to be a problem than
the returnXML object.
I missed the earlier parts of this thread though, so maybe I'm
missing your point.
- Scott
| Related mails | Author | Date |
|---|---|---|
| Paul Borokhov | Apr 28, 19:52 | |
| Scott Stevenson | Apr 28, 20:19 | |
| Paul Borokhov | Apr 28, 20:49 | |
| Buddy Kurz | Apr 28, 21:34 | |
| Scott Stevenson | Apr 28, 22:32 | |
| Paul Borokhov | Apr 28, 23:01 | |
| Shawn Erickson | Apr 29, 00:11 | |
| Matt Neuburg | Apr 30, 01:52 |






Cocoa mail archive

