Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should inspect all of the statements involving your properties to undestand where your variables are actually deallocated. Anyway, here is a quick solution that will avoid crashes, since your variables will be released if and only if they are still allocated objects:</p> <p>-(void)dealloc{</p> <pre><code>if(to != nil{ NSLog(@"releasing: %@", to); [to release]; } if(from != nil{ NSLog(@"releasing: %@", from); [from release]; } if(information != nil){ NSLog(@"releasing: %@", information); [information release]; } [super dealloc]; </code></pre> <p>}</p> <p>Also, you may want to download, install and use the CLANG checker tool to understand why your code is wrong. This tool (which is already built for Leopard 10.5.x) may sometimes fail to provide the correct answer, but in my personal experience it never failed. I highly recommend it as one of your daily development tools.</p> <p>You can download it from</p> <p><a href="http://clang.llvm.org/StaticAnalysis.html" rel="nofollow noreferrer">http://clang.llvm.org/StaticAnalysis.html</a></p> <p>Usage it really simple. Take a look at</p> <p><a href="http://clang.llvm.org/StaticAnalysisUsage.html#BasicUsage" rel="nofollow noreferrer">http://clang.llvm.org/StaticAnalysisUsage.html#BasicUsage</a></p> <p>In practice, you simply build your Xcode project using the command</p> <p>scan-build -k -V xcodebuild</p> <p>then, you inspect the resulting output HTML files using the command that will appears as output in your terminal window. These files will give you a detailed explanation of why something is wrong in your code.</p> <p>Kind regards</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