NSString variable is not accepting value ( ==> Arrow specifies breakpoint)
if i keep only starting 2 lines then the value of text field are not accepted at all but their is no error and execution continues..
but when i print breakpoint in gdb it shows following error description
Printing description of loginurl:
A syntax error in expression, near `variable)'.
A syntax error in expression, near `variable)'.
Also, if i replace the following same error exists
Code:
-(IBAction)btnLoginGoClicked:(id)sender
{
NSString *userid =txtUserId.text; //==>on breakpoint while debugging value shown by userid is "abcd"
NSString *pass = txtPassword.text; //==>on breakpoint while debugging value shown by pass is "yyy"
NSString *loginurl= [[NSString alloc] initWithFormat:@"http://abc.com/email=%@&password=%@" ,userid,pass];
//==>on breakpoint while debugging value shown by loginurl is NSString* loginurl <variable nil
NSURL *url = [NSURL URLWithString:loginurl];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[loginurl release];
[request setDelegate:self];
[request startAsynchronous];
}
but when i print breakpoint in gdb it shows following error description
Printing description of loginurl:
A syntax error in expression, near `variable)'.
A syntax error in expression, near `variable)'.
Also, if i replace the following same error exists
Code:
//Replace ==>
NSString *loginurl= [[NSString alloc] initWithFormat:@"http://abc.com/email=%@&password=%@" ,userid,pass];
//with ==>
NSString *loginurl=@"test";
Same code runs in other project