Probably race condition in accessing INI file

Post your bug reports here.
Post Reply
CaptainFlint
Posts: 8
Joined: Mon Sep 25, 2006 5:38 pm
Location: Moscow, Russia
Contact:

Probably race condition in accessing INI file

Post 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?

grigsoft
Site Admin
Posts: 1673
Joined: Tue Sep 23, 2003 7:37 pm
Contact:

Re: Probably race condition in accessing INI file

Post by grigsoft »

Thank you, I will check this. I have not thought about such case before.

Post Reply