Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP bug - SetAll increases memory usage
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
VFP bug - SetAll increases memory usage
Miscellaneous
Thread ID:
00521269
Message ID:
00521269
Views:
49
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
Next
Reply
Map
View

Click here to load this message in the networking platform