Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Words() and WordNum() crashing in VFP 6.0
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00287036
Message ID:
00287160
Views:
23
>>Both the functions are failing .. there is no pattern at all .. I can take the same string and parse it 10 times .. sometimes it fails on the first time sometimes the last .. this is true for both functions .. I've tried replacing the delimiter (originally chr(1)) with spaces and tabs .. but no luck ..
>>
>>It's easy enough to write my own versions but it would be really nice to find out why they are failing.
>
>How long are the strings in general? More than 1K, less than 1K etc. You've mentioned below 8K, ever that long?
>
>>As to the fgets function .. I sometimes read in really long strings per line (1000 + characters ) .. I think the new limit is 8192 .. or some such eg:
>>
>>Old version .. this no longer works
>>myStr=fgets(m.ip,10000)
>>
>>new version .. this works
>>myStr=fgets(m.ip,8192)
>
>Sounds as if they've capped the length at 8K. Have you tried 10 * 1024?

It is now capped at 8192, and I think the raw file size at 16MB from some posts a couple of months back, but don't quote me on the latter. I've proved out the 8K limit.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform