Thanks Mike. But I have checked my program for all those things that can cause time-increasing memory usage(references, arrays, shift regs etc.) But the most interesting thing was I used the same program in NT and 2000 as I have written earlier. In 2000, I have started the application with 24 mb and finished around 24 mb, (no increase in memory usage) and I succesfully finished my application. But in NT (with a virtual memory of around 2gb) the same program cauldn't be able to finish the application that in the middle came a windows error "low on virtual memory". What can be the reason to this unusual situation??
Thanks...
Ogulcan