Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP bug - SetAll increases memory usage
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
VFP bug - SetAll increases memory usage
Divers
Thread ID:
00521269
Message ID:
00521269
Vues:
51
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform