Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffer overrun
Message
From
27/10/2011 04:49:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/10/2011 16:56:53
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01527390
Message ID:
01527450
Views:
151
>Out of curiosity I made a few minor modifications so that your example would run in VFP6 to see what would happen. I don't get the error in VFP6 (the modified program will give the error as before in VFP9). I do not have VFP8 to test to see if problem occurs in VFP8.
>
>The only other significance I can think of with ampersands would be with macro expansion -- though behavior in VFP6 doesn't seem to indicate anything happening with macros being evaluated. The thing about 254 characters does seem interesting -- it's one character shy of maximum length of "pascal-style" strings (where a single byte is used for length) -- which happens to be the longest C-style string you'd be able to encode within a pascal-style string.

The ampersands in the case where this happened were all surrounded with spaces. Also, the error seems to catch at 253 (IIRC), suggesting that some kind of expansion was taking place. Since it's all somewhere in the internals, we can only guess.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform