Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox Dos (Foxpro 2.0)
Message
From
05/08/1999 08:39:33
 
 
To
05/08/1999 07:20:30
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00249971
Message ID:
00250120
Views:
23
>>I have a client that has a DOS application that works wonderfully.. Still runs on a 286. The 286, has seen better days and is in need of replacement. (No Y2K issues, uses 4 digit years from beginning)
>>
>>Does anyone know of any issues with the newer PC's and Foxpro for DOS?
>>
>>I really don't want to install DOS on the machine as this will be more work for me. I would probably be setting it up in Windows NT or Windows 95/98.
>>
>>Is there a reason to pick NT over Win 9x?
>>
>>I really don't want to rewrite the application, as it works!!!
>>
>>Just the PC it runs on does not.
>>
>>TIA,
>>
>>Mike
>
>Mike,
>
>FPD 2.0 has a bug that only appears on faster machines : the function (sys(I don't know by heart) that generates unique filenames, actually generates duplicate names and I don't remeber if this was a problem at runtime but developing was a pain before I understood what was happening the time I used v2.0 because I kept loosing screens and reports (didn't save correctly) ...

It's not a bug; the behavior of SYS(3) does not guarentee that the name returned will be unique (this has been documented for a long, long time). The return from SYS(3) is based on the current time returned by one of the standard DOS interrupts, and the same name is generated if the SYS(3) function is invoked more than once during a clock tick (something in the neighborhood of 5070ms, an eternity by current processor standards.)

The same mechanism is used by SYS(3) within later versions of FP and VFP, too; SYS(2015) which was introdcued later does return a virtually unique 10 character long string for each invocation.
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
Reply
Map
View

Click here to load this message in the networking platform