Quote Originally Posted by cilu View Post
@vcdebugger, why are you suggesting something like that? That is not even valid C++ code. You allocate memory on the heap, but don't use a pointer. He's code was already correct. Mind what you suggest.

.
sorry, Cilu. I suggested that by seeing the line where it crashed.. thinking memory would not have been allocated.

Its long time i coded in C++ and still want to be in touch with it and learn something. Thats why I am here.with this.. I learnt ( or got aware ? :P) something. thanks.