Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memory Management
Message
 
To
13/05/2004 14:09:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00903732
Message ID:
00903769
Views:
17
>>I got a question about memory management. To figure out what I want to do try this :
>>
>>Open the Task Manager and add the 'Peak Memory Usage' (if you don't already have it) using the View / select columns menu and open a program (for my test I used Word 2000). As you see, the mem. usage is similar to the peak mem. usage (not always but most of the time). If you minimize the window and maximize it back, you'll see the mem. usage drop. I would like to know why it's happening and if there's a fox command I could use to do the same thing without minimizing it with a .WindowState = 1.
>>
>>The reason I would like to decrease the memory usage is because one of our client is using Citrix with a huge fox application and they must reboot the Citrix server often due to memory overload. I was wondering if minimizing the memory usage would solve or decrease the overload.
>>
>>TIA.
>
>Marc. Check out SYS(3050), SYS(1104), and the FLUSH command. These will help you.

Ok I've done some test with a fox application we've built (a smaller one):

Memory with no SYS(1104), RELEASE ALL and FLUSH

Memory Usage (Ko) Peak memory usage (Ko)
13316 13356 (Top level form)
15808 15808 (Open a child form)
14812 15820 (Close the child form)

Memory with SYS(1104), RELEASE ALL and FLUSH in the Unload of the child form

13312 13352 (Top level form)
15216 15220 (Open child form)
14444 15224 (Close the child form)

Same test with minimize

13388 13420 (Top level form)
15864 15864 (Open child form)
14832 15872 (Close the child form)
3552 15872 (Minimize the app and maximize)

The SYS(1104), RELEASE and FLUSH doesn't seem to change a thing... and I tried to change the SYS(3050,1) value and I got the same result.
Previous
Reply
Map
View

Click here to load this message in the networking platform