#1  
Old 10-08-2008, 09:04 PM
mek mek is offline
Senior Member
 
Join Date: Jul 2008
Location: Boston
Posts: 1,268
Default error msg

okay so this makes me want to drink

i've gone over my code three entire times, looking for a spelling error, typo or anything that would cause the app upon launch to terminate

any ideas?

this is the error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithUTF8String:]: NULL cString'
Reply With Quote
  #2  
Old 10-08-2008, 09:43 PM
bovinedragon's Avatar
bovinedragon bovinedragon is offline
Member
 
Join Date: Sep 2008
Posts: 98
Default

NSInvalidArgumentException
Name of an exception that occurs when you pass an invalid argument to a method, such as a nil pointer where a non-nil object is required.

Are you sure that your cString is intialized? Try debugging and making sure that the pointer is not nil.
Reply With Quote
  #3  
Old 10-08-2008, 09:55 PM
mek mek is offline
Senior Member
 
Join Date: Jul 2008
Location: Boston
Posts: 1,268
Default

Quote:
Originally Posted by bovinedragon View Post
NSInvalidArgumentException
Name of an exception that occurs when you pass an invalid argument to a method, such as a nil pointer where a non-nil object is required.

Are you sure that your cString is intialized? Try debugging and making sure that the pointer is not nil.
maybe im just tired, but where is this cString?, i did a find in project and it brought back no returns, i have no variables entitled cString

i wish it would point to the line of code that is causing this

when i try the debugger its just a bunch of hex code

and thank you for your help
Reply With Quote
  #4  
Old 10-08-2008, 10:07 PM
bovinedragon's Avatar
bovinedragon bovinedragon is offline
Member
 
Join Date: Sep 2008
Posts: 98
Default

A cString is just a string that is held in a char* (aka a c-style string). It is a type, not a variable name.

It says it is throwing the exception on this call:
[NSString stringWithUTF8String:]

Do you use that in your code somewhere? Try searching for stringWithUTF8String in your code

Also, it should tell you the line of code that it is crashing on, if you look at the stack trace.

Last edited by bovinedragon; 10-08-2008 at 10:12 PM..
Reply With Quote
  #5  
Old 10-08-2008, 10:14 PM
mek mek is offline
Senior Member
 
Join Date: Jul 2008
Location: Boston
Posts: 1,268
Default

dude, you are amazing

thank you so much...

it was an out of sequence stringWithUTF8String

now that is is fixed, thanks to you...i should probably sleep on it -hahah
Reply With Quote

Reply

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

Forum Jump

Copyright 2012, TouchArcade.com, LLC.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Copyright 2008 - 2011, TouchArcade.com. Privacy Policy / DMCA Copyright Agent