qbektrix / keynote-nf

Automatically exported from code.google.com/p/keynote-nf
0 stars 0 forks source link

Time needed to close can be high in certain environments #453

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When KeyNote is closed the time needed can be very high depending, probably, on 
the antivirus installed. This is clearly appreciable when windows is closing, 
because system must wait KN to close.

At home I never suffered this problem but in the company where I work I can 
have to wait till 10 seconds (!). After tracing the problem I have encountered 
that all the delay occurs when saving the configuration in .INI files. KN 
allways saved that information using a rtl class, TIniFile, that makes multiple 
calls to method WritePrivateProfileString of the API (kernel32).

Replacing the use of that class for another, TMemIniFile, that <<loads an 
entire INI file into memory and allows all operations to be performed on the 
memory image.  The image can then be written out to the disk file>>, reduces 
drastically the time needed to save the configuration. Althoug this method is 
better in the situation that KN uses it, I think the other measured time was 
excessive and probably explained by continued interception of calls by an 
antivirus or similar.

Original issue reported on code.google.com by dpra...@gmail.com on 22 Nov 2012 at 5:02

GoogleCodeExporter commented 9 years ago
Fixed at revision r161

Original comment by dpra...@gmail.com on 22 Nov 2012 at 5:05

GoogleCodeExporter commented 9 years ago
TMemIniFile Doesn't Handle Quoted Strings Properly 
(http://qc.embarcadero.com/wc/qcmain.aspx?d=4519)
Correction added in revision r162

Original comment by dpra...@gmail.com on 25 Nov 2012 at 10:24

GoogleCodeExporter commented 9 years ago
I have just released a new version of KeyNote NF: 1.7.9 Beta 4

Could you verify and confirm if the issues are correctly resolved?
Thanks
Daniel

Original comment by dpra...@gmail.com on 7 Jan 2013 at 7:43