Page 1 of 1

Probably race condition in accessing INI file

Posted: Mon May 17, 2010 1:08 pm
by CaptainFlint
Rarely, but it happens that Compare It! completely resets all the settings. Today I finally seem to have found the reason: I opened two instances almost simultaneously (it happened because of temporary computer slowness). First instance opened correctly, but the second one was as if all the settings were dropped. Restarting did not help — settings just erased from the INI file, so I had to reconfigure everything from scratch (including registration). I suspect that when two Compare It! instances opened they tried to read/write the INI file simultaneously without blocking, thus interfering with each other.

Version is 4.2.2186 Unicode, OS is XP x64 SP2.

PS: One minor issue: copyright year in the About dialog is still 2009.

PPS: Maybe, it's worth moving the Russian forum here as a sub-forum and make redirect from the old location?

Re: Probably race condition in accessing INI file

Posted: Mon May 17, 2010 1:25 pm
by grigsoft
Thank you, I will check this. I have not thought about such case before.