the following example shows the problem:
"int* pointername = new int"
followed by "delete pointername" - no problem.
"int* pointername = new int" followed by "delete pointername"
flags`an error during execution. (compile/built are passing ok).
This happens with 2 very different compilers: vc++ (native) and djgpp one.
looks like I am missing some thing in c++ in general.
I selected type *int but it coulds be any pointer type(pointer to a class for example).
Thanks for your attention