[fpc-pascal]dos approx delay fn that releases cpu

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed May 9 17:56:52 CEST 2001

On Wed, 9 May 2001, Jonas wrote:

> On woensdag, mei 9, 2001, at 05:08 , Michael Van Canneyt wrote:
> >> Perhaps this is the problem area you should be addressing, rather than
> >> trying to find a sleep/delay procedure for GO32V2.
> >
> > I also think this should be addressed then, instead of some ad-hoc
> > patch.
> > If you can explain (preferably with some example code) the probles
> > you're
> > having with locked files, maybe we can try to solve them.
> The problem is that Windows keeps a lock on a file for a few seconds
> after a (Win32) program has released it, that's all. It's an OS
> bug/feature, I don't think you can work around it in your program
> (except for always trying during 2 seconds or so to open a file before
> giving up, but that's not very nice)

? But don't dos programs have the same problem then when running under windows?


More information about the fpc-pascal mailing list