Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CURSOR Experiencing Memo Bloat
Message
 
 
À
16/07/2006 14:27:37
John Onysko
1 Edi Source, Inc.
Hudson, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01136610
Message ID:
01136826
Vues:
14
This message has been marked as the solution to the initial question of the thread.
John,

Go back and review message #1136747. The original allocation doesn't matter. If you make memo smaller and then make it bigger by more than what is left in the new smaller block it'll bloat to a new allocation.

Let's see if a picture helps:
<-------- orginal size ----------------->_____| && _ = unused block, | = end of block
<---- new smaller size ---->___|************** && * = unreuseable space
<-------- new bigger size1-->__|************** && this one will still fit so it'll not bloat
<--------- new bigger size2 -----> && this one exceeds the __ unused block so it'll bloat to the end of the file
>Done. Memo bloat still happening. Argh.
>
>To summarize:
>
>Before any processing of a record occurs, I replaced the contents of the memo field with the memo field plus space equal to 20% of the memo field. I then replaced it back with the original field. Processing then began and the replacement string was never bigger than the original value. Memo bloat occurred.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform