Re: Trying to track down error in NSPersistentDocument when saving

2009-08-17 Thread Sean McBride
On 8/16/09 9:47 PM, Gideon King said: >Cool - haven't used conditional breakpoints before, and didn't realize >about objc_exception_throw... Then you probably don't know about the ".gdbinit" file either (google it), it's quite handy. Mine contains the following, which I suggest you add to yours:

Re: Trying to track down error in NSPersistentDocument when saving

2009-08-16 Thread Gideon King
Cool - haven't used conditional breakpoints before, and didn't realize about objc_exception_throw... That gives me completely different information, but much more useful: #4 0x97578cba in -[NSAtomicStore(_NSInternalMethods) _insertNodeIntoMainCache:] () #5 0x97578c51 in -[NSAtomicStore(_NS

Re: Trying to track down error in NSPersistentDocument when saving

2009-08-16 Thread Graham Cox
On 16/08/2009, at 9:26 PM, Gideon King wrote: Any suggestions as to where to look for a solution to this would be very welcome. How about setting a conditional breakpoint on [NSDictionary setObject:forKey] with the condition object == nil? Also, set a breakpoint on objc_exception_throw

Trying to track down error in NSPersistentDocument when saving

2009-08-16 Thread Gideon King
Hi, I'm hoping someone may have encountered something like this before, or have knowledge of the internals of NSPersistentStore... I am getting an exception on NSDictionary setObject:forKey: (attempt to insert nil key), and although I am not getting any stacktrace, it appears when I step th