I've got a pointer declared like so:
char *SomeChar;
SomeChar = new char[10];
I then want to delete it before my program quits...so I do this:
SomeChar = 0;
delete SomeChar;
Is this correct to free up mem? If so, I think I know where the problem may lie. Thanks in advance!
Niky Williams
NTS Marketing
Niky.Williams@NTSMarketing.com
char *SomeChar;
SomeChar = new char[10];
I then want to delete it before my program quits...so I do this:
SomeChar = 0;
delete SomeChar;
Is this correct to free up mem? If so, I think I know where the problem may lie. Thanks in advance!
Niky Williams
NTS Marketing
Niky.Williams@NTSMarketing.com