Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-30-2009, 12:07 PM   #1 (permalink)
Registered Member
 
mebarron's Avatar
 
Join Date: Apr 2009
Location: Michigan
Posts: 47
Default GuardMalloc error UITextView

This has worked for me for weeks.
I click on a touch above my TextView and reach this code

- (void)textViewDidBeginEditingUITextView *)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:]

Last edited by mebarron; 05-30-2009 at 12:17 PM.
mebarron is offline   Reply With Quote
Reply

Bookmarks

Tags
uitextview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 309
18 members and 291 guests
@sandris, ADY, dacapo, Dani77, djohnson, dre, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, timle8n1, tomtom100, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:04 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0