MEM Usage with Task Manager - Win2000

When I run the Task Manager with a program that does a few simple transformations the the memory is not released after the transformation is performed. Leading to an eventual crash of the program. Any clues to what I am missing? I’m pretty much following the format used in the RedBook.MEM Usage window shows a increment after each transformation.