How can logging a pointer value cause EXC_BAD_ACCESS?

2011-05-29 Thread Jerry Krinock
I'm really losing it; or maybe I never understood to begin with. How can this code crash? - (void)dealloc { NSLog(@0988 %p %s, self, __PRETTY_FUNCTION__) ; NSLog(@1250 ) ; CRASH- int myPointer = (int)m_managedObjectContext ; NSLog(@1335 myPointer =

Re: How can logging a pointer value cause EXC_BAD_ACCESS?

2011-05-29 Thread Stephen J. Butler
On Sun, May 29, 2011 at 1:30 PM, Jerry Krinock je...@ieee.org wrote: I'm really losing it; or maybe I never understood to begin with.  How can this code crash?      - (void)dealloc      {          NSLog(@0988 %p %s, self, __PRETTY_FUNCTION__) ;          NSLog(@1250 ) ; CRASH-   int