Watching my program in Task Manager it uses a lot of memory. Also when I exit the program (by clicking the X close buttion) the form disappears but it remains running in task manager and the memory use continues to stay high - what could be reasons for this?

Why isnt it closing and why is it keeping so much memory in use?

The program uses a lot of arrays and pointers but Ive tried to remove all of these after use, eg if I have a pointer called point,

Code:
delete point;
point = NULL;
Is this sufficient?

Are there any other reasons for the problem?

Thanks for any help

TJJ