Hi, I have following code which is called numerous times:
NSString *Final = [ NSString stringWithFormat:@"%@%@%@%@.%@%@", str1, str2, str3, str4, str5, str6];
Every once a while Final string is set to nil, while str1 ... to str6 are perfectly valid string (I have verified in debugger)!
I had this code originally, but every once a while Final was also an invalid pointer
NSString *Final = [ [NSString alloc] initWithFormat:@"%@%@%@%@.%@%@", str1, str2, str3, str4, str5, str6]; ... [Final release];
I am absolutely puzzled. What could this be?
Basically I am collecting values from various edit boxes, form a string from these values and eventually convert it to the number.
Thanks!