The experimental file lccking did not work on windows.
This was due to an exception which always occurs on windows when writing the semaphore file.
To fix this, the following code change is needed in MindMapMapModel.java line 512
Tools.setHidden(inSemaphoreFile, true, /*synchro=*/false); // Exception free
if (lock != null)
{
// EV: Lock release will fail if channel is already closed, this error can be ignored
try { lock.release(); } catch (Exception e) {}
}
}
We have been using this modification for 1 year now in version 0.8.0 and it is working like a charm.
We store our mindmaps on the file server an get a nice warning when someone else has the file open.
modified code