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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

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

Reply
 
LinkBack Thread Tools Display Modes
Old 12-19-2011, 07:43 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Location: Ahmedabad
Posts: 25
nitingohel is on a distinguished road
Send a message via Skype™ to nitingohel
Default Application crashes on second select of same row

hey friends please i can't undaunted what's the problem in application,

below in quotes i put the crash report please help

Quote:
2011-12-19 19:07:49.915 evernote[6209:207] -[UIDeviceRGBColor length]: unrecognized selector sent to instance 0x6f1a660
2011-12-19 19:07:49.981 evernote[6209:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIDeviceRGBColor length]: unrecognized selector sent to instance 0x6f1a660'
*** Call stack at first throw:
(
0 CoreFoundation 0x024af919 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x025fd5de objc_exception_throw + 47
2 CoreFoundation 0x024b142b -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x02421116 ___forwarding___ + 966
4 CoreFoundation 0x02420cd2 _CF_forwarding_prep_0 + 50
5 UIKit 0x003b7634 -[UITextView setText:] + 168
6 evernote 0x000061b8 -[DetailsViewController viewWillAppear:] + 384
7 UIKit 0x0037e8d7 -[UINavigationController _startTransition:fromViewController:toViewControll er:] + 858
8 UIKit 0x00379329 -[UINavigationController _startDeferredTransitionIfNeeded] + 266
9 UIKit 0x003803a0 -[UINavigationController pushViewController:transition:forceImmediate:] + 876
10 UIKit 0x003791c3 -[UINavigationController pushViewController:animated:] + 62
11 evernote 0x00004b26 -[DocumentTableViewController tableView:didSelectRowAtIndexPath:] + 438
12 UIKit 0x0033a718 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:noti fyDelegate:] + 1140
13 UIKit 0x00330ffe -[UITableView _userSelectRowAtIndexPath:] + 219
14 Foundation 0x00047cea __NSFireDelayedPerform + 441
15 CoreFoundation 0x02490d43 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUN CTION__ + 19
16 CoreFoundation 0x02492384 __CFRunLoopDoTimer + 1364
17 CoreFoundation 0x023eed09 __CFRunLoopRun + 1817
18 CoreFoundation 0x023ee280 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x023ee1a1 CFRunLoopRunInMode + 97
20 GraphicsServices 0x02c9a2c8 GSEventRunModal + 217
21 GraphicsServices 0x02c9a38d GSEventRun + 115
22 UIKit 0x002d6b58 UIApplicationMain + 1160
23 evernote 0x00002a64 main + 102
24 evernote 0x000029f5 start + 53
)
terminate called after throwing an instance of 'NSException'
__________________
neet
www.iphoneadd.com
nitingohel is offline   Reply With Quote
Old 12-19-2011, 07:55 AM   #2 (permalink)
Registered Member
 
SundialSoft's Avatar
 
Join Date: Oct 2010
Location: Scotland
Posts: 176
SundialSoft is on a distinguished road
Default

Quote:
Originally Posted by nitingohel View Post
hey friends please i can't undaunted what's the problem in application,

below in quotes i put the crash report please help
This line tells you what's wrong:-
'[UIDeviceRGBColor length]: unrecognized selector sent to instance '
so somewhere you are using this and no such selector exists.
Turn on zombies in case you have something that's been released.
Post the code if you want detailed answers.

Cheers

Ian
SundialSoft is offline   Reply With Quote
Old 12-19-2011, 11:27 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Location: Ahmedabad
Posts: 25
nitingohel is on a distinguished road
Send a message via Skype™ to nitingohel
Default thanks

Quote:
Originally Posted by SundialSoft View Post
This line tells you what's wrong:-
'[UIDeviceRGBColor length]: unrecognized selector sent to instance '
so somewhere you are using this and no such selector exists.
Turn on zombies in case you have something that's been released.
Post the code if you want detailed answers.

Cheers

Ian

hey i got solution in my main class
Quote:
-(void)hydrateDetailViewData {

//If the detail view is hydrated then do not get it from the database.
if(isDetailViewHydrated) return;

if(detailStmt == nil) {
const char *sql = "Select discription from details Where id = ?";
if(sqlite3_prepare_v2(database, sql, -1, &detailStmt, NULL) != SQLITE_OK)
NSAssert1(0, @"Error while creating detail view statement. '%s'", sqlite3_errmsg(database));
}

sqlite3_bind_int(detailStmt, 1, noteID);

if(SQLITE_DONE != sqlite3_step(detailStmt)) {

//Get the price in a temporary variable.
NSString *aPass = [NSString stringWithUTF8Stringchar *)sqlite3_column_text(detailStmt, 0)];

//Assign the price. The price value will be copied, since the property is declared with "copy" attribute.
self.noteDisc = aPass;

//Release the temporary variable. Since we created it using alloc, we have own it.
//[aPass release]; //.......... i release this object thats why apps was crashing thanks for
}
else
NSAssert1(0, @"Error while getting the price of coffee. '%s'", sqlite3_errmsg(database));

//Reset the detail statement.
sqlite3_reset(detailStmt);

//Set isDetailViewHydrated as YES, so we do not get it again from the database.
isDetailViewHydrated = YES;
}

//[aPass release]; //.......... i release this object thats why apps was crashing thanks for your reply
__________________
neet
www.iphoneadd.com
nitingohel is offline   Reply With Quote
Old 12-20-2011, 03:06 AM   #4 (permalink)
Registered Member
 
SundialSoft's Avatar
 
Join Date: Oct 2010
Location: Scotland
Posts: 176
SundialSoft is on a distinguished road
Default

Quote:
Originally Posted by nitingohel View Post
hey i got solution in my main class


//[aPass release]; //.......... i release this object thats why apps was crashing thanks for your reply
Glad you got it fixed.

Interesting, the coffee sqlite example was the one I went with for my first app. I moved on to core data for my second app as it's much easier though there is no built-in tool to load up data like the Firefox app.

I also went for ARC so no more release stuff. It saves lots of time.
SundialSoft is offline   Reply With Quote
Reply

Bookmarks

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: 382
9 members and 373 guests
apatsufas, comicool, Creativ, Dalia, dansparrow, LunarMoon, mer10, Murphy, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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