i have an array
int * i = new int;
but when Im trying to delete it, Im getting an assertion failed and that the heap is corrupted,
I realize that this is probably not the best way to use an array, but i want to know how to delete this particulate problem,
I read some where that you can just sett i=0; and then delete it, but that wouldn't free any memory, just deleting pointer 0.
any one pls`?