Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CURSOR Experiencing Memo Bloat
Message
 
 
To
16/07/2006 14:27:37
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01136610
Message ID:
01136826
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform