Re: Malloc Error: pointer being freed was not allocated

2012-09-08 Thread Richard Somers
On Sep 7, 2012, at 3:55 PM, Jens Alfke wrote: > On Sep 7, 2012, at 12:01 PM, Richard Somers wrote: > >> MyApp(469,0x1009fbcc0) malloc: *** error for object 0x12f6b19a0: pointer >> being freed was not allocated *** set a breakpoint in malloc_error_break to >> debug >> Following the instructions

Re: Formatting elapsed time

2012-09-08 Thread João Varela
> > > >I'm getting stuck trying to format a variable quantity of elapsed time >for the user's locale. The NSDateFormatter class seems to only provide >formats for actual times (e.g. "1:30 AM"). What I need to do is turn 1 >hour and 30 minutes into "1:30" for my US English settings, and the >appropr

Re: Malloc Error: pointer being freed was not allocated

2012-09-08 Thread Jens Alfke
On Sep 8, 2012, at 6:44 AM, Richard Somers wrote: > I found the pointer. It appears in frame #2 free () and higher frames in one > of the general purpose registers. One would think that the pointer would show > up in frame #3 gfxReleaseSharedState () which calls free () but it does not. It’s

Code Comments

2012-09-08 Thread koko
Does this code look correct in terms of memory management? It is called when a complete XML document is recognized (received via NSStream of a telnet host port) msgStart and msgEnd point to the beginning and ending the length check is arbitrary as I found without it I could get lengths that c

Re: Code Comments

2012-09-08 Thread Seth Willits
On Sep 8, 2012, at 8:00 PM, koko wrote: > the m_xmlParserDelegate object is instanced in IB Not a fan of instantiating objects in IB. Way too easy to get gigantic nibs going which ain't right. > - (void)startMessageParse:(void*)msgStart end:(void*)msgEnd > { >NSInteger length = msgEnd-msgS

Strange crash while loading nib

2012-09-08 Thread Markus Spoettl
Hello, I have a crash that I'm seeing during nib loading of a view controller nib file very very sporadically, I can't duplicate it and I have no idea what could be causing it. Any ideas what could be causing something like this? Regards Markus Application Specific Information: objc_msgSe

Re: Strange crash while loading nib

2012-09-08 Thread Graham Cox
On 09/09/2012, at 4:25 PM, Markus Spoettl wrote: > 4 -[NSArrayController didChangeValuesForArrangedKeys:objectKeys:indexKeys:] > + 174 > 5 -[NSArrayController initWithCoder:] + 1072 This suggests that initWithCoder: is setting a property in a manner such as self.whatever = foo; Which tri