C++ Destruct Function Error!
<p>I wrote a program that cannot work properly.The problem is that when I destruct the pointer it goes all wrong.</p>

<p>the code is as follows:</p>

<pre><code>if(pImage)
    delete pImage;
</code></pre>

<p>but if i use this code, it can work all right.</p>

<pre><code>    if(!pImage)
    delete pImage;
</code></pre>

<p>can you explain the reasons ? thank you !</p>
