Which comes first...delete  or NULL?
I've allocated memory for a pointer with new like this:
I use it several times in the program, rewriting data into it.
char * szBuffer=new char ;
When I quit at the end of the program, i get an error. Debug says it happens when i call delete  on the szBuffer pointer.
currently heres what i do:
as i've been told szBuffer is turned to 0 length when NULL is used...but should that be used before or after delete?
delete  szBuffer;
thanks for your help.