>>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.