This has worked for me for weeks.
I click on a touch above my TextView and reach this code
- (void)textViewDidBeginEditing

UITextView *)textView
{
1 [cancelButton setHidden:NO];
2 [saveButton setHidden:NO];
3 textCopy = myTextView.text; //save for CancelButton
}
There is a break on line #3, I go to gdb and issue the po command you see below
(gdb) po [myTextView text]
I received the following error message
Previous frame inner to this frame (gdb could not unwind past this frame)
I then turned on GuardMalloc and now see the following in Debugger Console:
(gdb) po [myTextView text]
Unsafe to call functions on thread 5: function: GMmalloc_zone_free on stack
Target does not respond to this message selector.
I do use sqlite3. I understand I need to change things before release in 3.0
This is my first app. Thanks for reading.
Any advice? Many Thanks, Mark
In the debugger I see in the GuardMalloc run
at one point I saw
#0 0x007b31c6 in mach_msg_trap
#1 0x007ba9bc in mach_msg
#2 0x007d7c29 in vm_deallocate
#3 0x000104e2 in GMmalloc_zone_free
#4 0x000108fd in GMfree
#5 0x00104483 in sqlite3CreateIndex
Now I am seeing
#0 0x00003140 in -[RecipeNoteViewController textViewDidBeginEditing:] at RecipeNoteViewController.m:194
#1 0x30b20f0a in -[UITextView becomeFirstResponder]
#2 0x30b248f0 in -[UITextView touchEnded:atLocation:loupeActive:loupeTerminalPoi nt:]
#3 0x30b24300 in -[UITextView touchesEnded:withEvent:]
#4 0x30a67917 in -[UIWindow sendEvent:]
#5 0x30a56fff in -[UIApplication sendEvent:]