Note that there are some explanatory texts on larger screens.

plurals
  1. POmessage sent to deallocated instance ! cant find error
    text
    copied!<p>alright I am looking for this error since 2 hours and I just cant figure it out please help me. I have the following situation I have 2 viewcontroller. one presents the other one as modalview like that.</p> <pre><code>SearchViewController *searchViewController = [[SearchViewController alloc]init]; [searchViewController setModalTransitionStyle:UIModalTransitionStyleCoverVertical]; searchViewController.delegate = self; searchViewController.senderTag = [sender tag]; [self presentModalViewController:searchViewController animated:YES]; [searchViewController release]; </code></pre> <p>in my searchviewcontroller I do this in the .h file</p> <pre><code>BSKmlResult *selectedAirport; @property (nonatomic, retain) BSKmlResult *selectedAirport; </code></pre> <p>in the .m file i synthesize it and then set it like that</p> <pre><code>selectedAirport = [self.airportList objectAtIndex:indexPath.row]; </code></pre> <p>and then release it here </p> <pre><code>- (void)dealloc { [selectedAirport release]; [super dealloc]; } </code></pre> <p>in the delegate methode of my SearchViewController which is implemented in the first viewcontroller where I also present the SearchViewController i have the following </p> <pre><code>if (controller.selectedAirport) { if (departureAirport) { [departureAirport release]; } departureAirport = [controller.selectedAirport copy]; } [self dismissModalViewControllerAnimated:YES]; </code></pre> <p>I narrowed down where the error happens it is in the dealloc of my SearchViewController [selectedAirport release];</p> <p>but I cant figure out where my mistake is please help</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload