Re: Dangling reference to an invalid object

2012-12-04 Thread Mike Abdullah
On 3 Dec 2012, at 18:13, Nick Zitzmann n...@chronosnet.com wrote: On Dec 1, 2012, at 10:33 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: I've been trying to hunt down a problem where Core Data will occasionally refuse to save with the error Dangling reference to an invalid object

Re: Dangling reference to an invalid object

2012-12-03 Thread Nick Zitzmann
On Dec 1, 2012, at 10:33 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: I've been trying to hunt down a problem where Core Data will occasionally refuse to save with the error Dangling reference to an invalid object. I wrote up the details here: http://www.mikeabdullah.net/dangling

Dangling reference to an invalid object

2012-12-01 Thread Mike Abdullah
I've been trying to hunt down a problem where Core Data will occasionally refuse to save with the error Dangling reference to an invalid object. I wrote up the details here: http://www.mikeabdullah.net/dangling-ref-to-an-invalid-object.html Can anyone shed some light on how this might happen

Re: Help debugging Dangling reference to an invalid object. Core Data error

2009-11-03 Thread Sean McBride
On 11/2/09 1:38 PM, Ben Trumbull said: The only caveat is you cannot change relationships from within - awakeFromFetch. This is documented: This is something I know and avoid, but it turns out this is what's happening afterall! Thanks! Is there some way to catch such violations? I

Re: Help debugging Dangling reference to an invalid object. Core Data error

2009-11-02 Thread Ben Trumbull
On 10/29/09 5:23 PM, Ben Trumbull said: Even if I do [scene addTargetsWeak:[scene targetsWeak]] I get the error. Does this make any sense to anyone? The only caveat is you cannot change relationships from within - awakeFromFetch. This is documented: Ben, This is something I know

Re: Help debugging Dangling reference to an invalid object. Core Data error

2009-10-29 Thread Sean McBride
. It gives: Dangling reference to an invalid object. = null; NSAffectedObjectsErrorKey = ( BSScene: 0x2004ff940 (entity: Scene; id: 0x2004f32a0 x-coredata:// FCE3E0E3-F187-4C44-BFC3-60D7AF3E579F/Scene/p343 ; ... This error gives only 4 hits with Google. :( The problem is that some

Re: Help debugging Dangling reference to an invalid object. Core Data error

2009-10-29 Thread Ben Trumbull
. To repro, I delete all Scenes then try to save. It gives: Dangling reference to an invalid object. = null; NSAffectedObjectsErrorKey = ( BSScene: 0x2004ff940 (entity: Scene; id: 0x2004f32a0 x-coredata:// FCE3E0E3-F187-4C44-BFC3-60D7AF3E579F/Scene/p343 ; ... This error gives only 4

Help debugging Dangling reference to an invalid object. Core Data error

2009-10-22 Thread Sean McBride
is nullify. To repro, I delete all Scenes then try to save. It gives: Dangling reference to an invalid object. = null; NSAffectedObjectsErrorKey = ( BSScene: 0x2004ff940 (entity: Scene; id: 0x2004f32a0 x-coredata:// FCE3E0E3-F187-4C44-BFC3-60D7AF3E579F/Scene/p343 ; ... This error gives

Re: Help debugging Dangling reference to an invalid object. Core Data error

2009-10-22 Thread Melissa J. Turner
relationships are optional and the delete rule for both sides is nullify. To repro, I delete all Scenes then try to save. It gives: Dangling reference to an invalid object. = null; NSAffectedObjectsErrorKey = ( BSScene: 0x2004ff940 (entity: Scene; id: 0x2004f32a0 x-coredata:// FCE3E0E3

re: Help debugging Dangling reference to an invalid object. Core Data error

2009-10-22 Thread Ben Trumbull
is nullify. To repro, I delete all Scenes then try to save. It gives: Dangling reference to an invalid object. = null; NSAffectedObjectsErrorKey = ( BSScene: 0x2004ff940 (entity: Scene; id: 0x2004f32a0 x-coredata:// FCE3E0E3-F187-4C44-BFC3-60D7AF3E579F/Scene/p343 ; ... This error