I have installed AVG 2010 anti virus and now he is scanning my ini file every time I made changes in it. If I am making multiple changes in it, it rises error that file is not accessible.
Example:
FIni.WriteInteger(aForm.ClassName, 'WindowState', Ord(aForm.WindowState));
FIni.WriteInteger(aForm.ClassName, 'Left', aForm.Left);
FIni.WriteInteger(aForm.ClassName, 'Top', aForm.Top);
If I am making little brakes between writes then its all right. Because anti virus have finished cheeking that my ini file is not virus.
FIni.WriteInteger(aForm.ClassName, 'WindowState', Ord(aForm.WindowState));
Sleep(100);
FIni.WriteInteger(aForm.ClassName, 'Left', aForm.Left);
Sleep(100);
FIni.WriteInteger(aForm.ClassName, 'Top', aForm.Top);
Sleep(100);
Is there any better solution for this problem