H
Hamish Dean
Hi,
I have created a DLL which the user is complaining:
"Even when it works ok, my application stays instable (like something is
allocated or deleted in the wrong way)."
What does this mean? The way I have been allocating is:
int * pNew;
pNew = new int;
And deletion:
delete pNew;
pNew = NULL; /* what woudl happen here if i left this line out? or pNew = 0;
*/
Are there any problems with this code?
I have created a DLL which the user is complaining:
"Even when it works ok, my application stays instable (like something is
allocated or deleted in the wrong way)."
What does this mean? The way I have been allocating is:
int * pNew;
pNew = new int;
And deletion:
delete pNew;
pNew = NULL; /* what woudl happen here if i left this line out? or pNew = 0;
*/
Are there any problems with this code?