SD> Q: Is it possible to disallow Windows interrupting my program ?
SD> -----------------------------------------------------------------
SD> I need perfect timing for my program. For my Delphi program. (it
SD> wasn't difficult to stay on-topic ;-) ). It will be the only task
SD> started in the enviroment. Is it possible to ensure that all data
SD> written (in cache) by earlier tasks has been flushed and no disk
SD> operation performed by Windows will disturb (slow down) executing
SD> of my code?
What exactly are you trying to do that is so critical it not be desturbed?
You can certainly write your application to be a "Bad" Windows app where it
doesn't give up CPU time to the system when it is processing something. If it
is a Windows 3.x app, just don't give up the CPU time in your loops and
important routines using the Application.ProcessMessages statement...but
don't assume that other windows tasks will not get any time. Second, if you
are using Delphi 2.0, you must remember that Win95 and WinNT are
multitrheaded which means other stuff will be running.
As far as the disk buffers, when you close files, the disk buffers are
flushed...as far as the cache, windows will take care of that assuming you
don't have a system reboot at a bad time.
Steve
--- FreeMail 1.07b
(1:203/21)
---------------
* Origin: The Visual Programmer's Workshop - N.H., Ca (916)338-3230 *
|