FROM : I. Savant
DATE : Tue May 01 12:45:25 2007
On May 1, 2007, at 12:37 AM, Chataka wrote:
> I am trying to fetch an array of managed objects but sometimes it
> crashes my app.
I'm *guessing* the problem is elsewhere in your code. Without more
information, it's only a guess. It seems like a memory management
problem somewhere "upstream". Suggestions:
1 - When posting an "it's crashing" thread, never forget to include
the type of crash (basically, anything in your run log at the time).
2 - You seem to be leaking your fetch request (you're not releasing
it) in your example; hopefully there's a release or autorelease
somewhere after the lines you pasted.
3 - Have you stepped through this code with the debugger to see if
everything's being handled correctly and that objects you expect to
be there really are there? The debugger is your friend.
--
I.S.
DATE : Tue May 01 12:45:25 2007
On May 1, 2007, at 12:37 AM, Chataka wrote:
> I am trying to fetch an array of managed objects but sometimes it
> crashes my app.
I'm *guessing* the problem is elsewhere in your code. Without more
information, it's only a guess. It seems like a memory management
problem somewhere "upstream". Suggestions:
1 - When posting an "it's crashing" thread, never forget to include
the type of crash (basically, anything in your run log at the time).
2 - You seem to be leaking your fetch request (you're not releasing
it) in your example; hopefully there's a release or autorelease
somewhere after the lines you pasted.
3 - Have you stepped through this code with the debugger to see if
everything's being handled correctly and that objects you expect to
be there really are there? The debugger is your friend.
--
I.S.
| Related mails | Author | Date |
|---|---|---|
| Chataka | May 1, 06:37 | |
| I. Savant | May 1, 12:45 | |
| Chataka | May 1, 13:47 | |
| Joshua Pennington | May 2, 02:28 |






Cocoa mail archive

