iPhone application terminate its own after completing user action
<p>This is my first question in Stack Overflow.
Following is my code</p>

<pre><code>    BOOL result=[ServiceUtil backup:(NSString *)phoneNumber :(NSString *)emailID :(NSString *)json :(NSString *)count];
    if (result == TRUE) {
        NSLog(@"I am Inside Loop");
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Confirmation"
                                                        message:@"Successfully Backup your contacts. Backup token is sent to your mail"
                                                       delegate:nil
                                              cancelButtonTitle:@"OK"
                                              otherButtonTitles:nil];

        [alert show];
        [alert release];
    }
</code></pre>

<p>"backup" method in "ServiceUtil" class returns TRUE and entered the if loop. But application terminate before showing the alert.</p>
