Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where is the memory???
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Where is the memory???
Divers
Thread ID:
00290506
Message ID:
00290506
Vues:
57
My application in VFP 6.0 slows down after a longer time running. I checked the SYS(1016) function, that shows the amount of memory used by User Objects. The amount is continuously increasing! Then I tried this:

New started VFP 6.0:
at the beginning sys(1016) shows 308 012 B.

execute m.O=CreateObject("Form") (a new clear form)

sys(1016) shows 315 172 B. (form takes 7160 B of memory)

now I execute RELEASE m.O (or m.O.Release and Release m.O, doesn't matter)

sys(1016) shows 309 832 B - so part of memory was released, but 1820 B is still hanging somewhere !

Repeating creating and releaseing objects (and that's what all application do mostly) cause more and more memory is used and application is slow and slow more...

After executing CLEAR MEMO, sys(1016) shows 309768 (still 1756 B hanging somewhere). I tried also others partial CLEARs, but with no effect. Executing CLEAR ALL (shows 308 360 - remains only 348 B, but you never return to former value 308 012 B). And using CLEAR ALL inside the application is really impossible.

Do you know any explanation? Where is the memory? How to free it?
Thanks for all suggetions...
Petr
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform