PDA

View Full Version : Debugger showing "Invalid" as string




KPForMacRum
Jun 30, 2009, 01:42 PM
Strange. I hope I am not doing anything drastically wrong. I have a following statement in two different programs, one command line utility and another GUI application:

NSString *strCustID = [NSString stringWithFormat:@"K%li",(long) custInt ];

When I debug these programs, command line utility, strCustID shows as:
0x106060 K10000125

However, in different program it shows as:
0x102030 Invalid
but it prints properly as K10000125.

Why is debugger showing Invalid for a string in the second program? For now, I am just ignoring this as application is working fine.

Any help will be greatly appreciated.

Regards,
Kishor