Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP bug - SetAll increases memory usage
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00521269
Message ID:
00521444
Views:
17
>Hi!
>
>Just ran you sample as is for a form with 2 comboboxes and 1 shape objects on form. Nothing happens - memory do not change by SetAll. I have _VFP.AutoYield=.F., SET STATUS BAR OFF and whatever else required to make VFP program run as quick as possible.

Vlad,

I used these both settings, but this is that I got with base VFP form and 5 textboxes:

Used memory before SetAll: 4161536
Now: 5420384
Number of iterations: 15000

>
>>Hi everybody,
>>
>>I'm reading an interesting Russian VFP site right now: www.nsvisual.com.fox2
>>
>>and here I found a problem, which I just reproduced:
>>
>>Create a form with several textboxes and a command button. Put this code in command button click event:
>>
>>Local i, cOldValue
>>cOldValue = sys(1016)
>>* Than the string passed to SetAll is longer, than the effect is more noticable
>>
>>For i = 1 To 1500000
>>    ThisForm.SetAll("ToolTipText", "Test memory", 'Textbox')
>>    wait window Ltrim(str(i)) + " - " + sys(1016) nowait
>>Next
>>messagebox("Used memory before SetAll: " + cOldValue + " Now: " + sys(1016))
>>
>>I'm curious, was this problem fixed?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform