25 Mar 2010, 15:36
Photo_6_pragsmall

Stephen Watson (30 posts)

After entering the code for this and running it, it crashes just after copying the text into the TextView.

I built the downloaded version and it does the same! Unfortunately, the call stack is all inside Apple’s routines, failing inside UITransitionView and there’s no joy in the console apart from EXEC_BAD_ACCESS.

I’m using the iPhone Simulator 3.1.3 SDK. Any ideas? An Apple bug in 3.1.3? There’s so little code it’s hard to see what the problem could be.

25 Mar 2010, 15:48
Photo_6_pragsmall

Stephen Watson (30 posts)

Update:

I changed the 2 uses of animated YES to NO and reran. This time it crashed again but there was now a message in the console:

objc[3476]: FREED(id): message release sent to freed object=0x4a10390

So, I removed the autorelease call in -composeMailTapped and all runs OK. Obviously there’s a memory issue but I’m not sure enough of memory handling yet to know what the correct coding should be.

25 Mar 2010, 16:49
N614592285_2406_pragsmall

Chris Adamson (277 posts)

Sorry, this is an erratum in your edition. See errata 41728 and 40795 in the 1.0 errata list.

26 Mar 2010, 18:03
Photo_6_pragsmall

Stephen Watson (30 posts)

Thanks Chris. I’m not used to this enough to think of looking in the Errata. I’ll try and get it into my skull ;-)

I’m very impressed about your responses to issues raised here, it’s much appreciated.

  You must be logged in to comment