In article 74317@tcs01.demon.co.uk, David James david@tcs01.demon.co.uk writes
Thank you for the details. I've now tried my test after removing HeapMon from the program, and the memory leaks seem to have away. Thank you very much.
As the person who started this thread, can I add my thanks to Frank, Russ and all the others who contributed to helping to resolve this problem (David and I are working on the same project if anybody was wondering). We were most impressed with Frank's continuing interest in the problem and the extremely speedy response when we were finally able to identify the problem area in the run time system.