Hi!
Try to use sys(1104) funtion after the intensive memory usage. This should clear all unused memory buffers. Take a look for help at the following link, it is not described in the MSDN.
http://fox.wikis.com/wc.dll?Wiki~SYS(1104)~VFPHTH.
>Hi everybody,
>
>My application running as an NT service opens - with FOPEN(cFile), analyzes - with FGETS(nHandle, 1000), and closes - with FCLOSE(nHandle), a big text file (of some 2 million rows). During analysis it performs a hard check of data consistency (many IF...ENDIF's), stores important things in a table, and closes it, then sleeps waiting for another wake-up. I noticed that during fgetting rows the RAM usage increases and is not released even after FCLOSE (in this way I loose some 500MB and more). I have to exit the program to give out all memory. Any hints or suggestions? Thanks in advance.
>
>(Environment: a VFP6 SP5 application running on Windows NT 4.0 SP6a box)
>
>Przemek Powalko
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.