Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP bug - SetAll increases memory usage
Message
From
20/06/2001 05:26:07
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00521269
Message ID:
00521314
Views:
18
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.

>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform