Debugger showing "Invalid" as string

Discussion in 'Mac Programming' started by KPForMacRum, Jun 30, 2009.

  1. macrumors newbie

    Joined:
    Sep 30, 2008
    #1
    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:mad:"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
     

Share This Page