Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory leak when my application FGETS
Message
 
To
29/05/2001 06:53:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00512127
Message ID:
00514437
Views:
11
>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


Przemek, just an idea ...

Get the task-manager of NT up front (right-click on taskbar) and click the tab which shows the cpu-useage. It shows the memoy-used too. Just let the app running as usual, and see whether it frees the memory by itself. I mean, what you state is my experience too (on very different operations) but after a while NT frees up the memory. So the only thing I am saying : is it a real memory leak or does it just appear to ?
Note : your "runs as a service" I'm not experienced with at all.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform