Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form property memory leak issue
Message
 
 
À
23/05/2003 09:20:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00790518
Message ID:
00792181
Vues:
28
Thanks, Jim.
Is it releated to the textbox only or to any control bound to the character member property?

>Here is a code repro. This is fixed in VFP8. You lose 1 handle and 4 bytes (as seen by SYS(1011) and SYS(1016) respectively) each time a textbox value is changed, if it is bound to a member property.
>
>
>LOCAL aobj[1], xx
>DELETE FILE testxx.sc?
>CREATE FORM testxx NOWAIT
>=ASELOBJ(aobj,1)
>xx = aobj[1]
>xx.autocenter = .t.
>xx.addproperty("cproperty")
>xx.cproperty = ""
>xx.addobject('txt1','textbox')
>
>* comment out this line and uncomment next for workaround
>xx.txt1.controlsource= "thisform.cproperty"
>* xx.txt1.writemethod('valid','thisform.cproperty = this.value')
>KEYBOARD 'Y' CLEAR
>RELEASE WINDOW 'Form Designer'
>CLEAR
>FOR lnj = 1 TO 5
>	DO FORM testxx.scx
>	FOR lni = 1 TO 10
>		testxx.txt1.value = "abc"
>	ENDFOR
>	testxx.release()
>	_CALCMEM = lnj
>	CLEAR ALL
>	=SYS(1104)
>	SET MESSAGE TO
>	LOCAL lnj
>	lnj = _CALCMEM
>	?SYS(1016),SYS(1011),lnj
>ENDFOR
>RETURN
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform