pychess icon indicating copy to clipboard operation
pychess copied to clipboard

Locked PGN file

Open ecrucru opened this issue 8 years ago • 7 comments

Hello,

Under Windows only :

  • Open a PGN file with pyChess
  • Open the game to verify that it is loaded
  • Close the game
  • Close the database
  • We are back to the home screen but don't terminate pyChess' main window now

The files PGN and SQLITE are locked. We must wait until the termination of pyChess to get the files unlocked.

Regards

ecrucru avatar Oct 27 '17 16:10 ecrucru

Can you explain what "locked" mean here? I can open/edit/save/delete .pgn and .sqlite also.

gbtami avatar Oct 28 '17 08:10 gbtami

It means that the file is not "closed" technically speaking. I can't save or delete the mentioned files while pyChess is not terminated. The lock is not exclusive, so there is a read access.

image

[Erreur when deleting the file or the folder]
Impossible to delete test.pgn : this resource is used by another person or another program.
Close the programs expected to use that file and try again.

This program is pyChess :

pychess.exe pid: 3064 ***
  578: File          C:\***\test.pgn

ecrucru avatar Oct 28 '17 10:10 ecrucru

I can't reproduce this nor with latest git nor with .msi I linked in #1484 Strange.

gbtami avatar Oct 28 '17 11:10 gbtami

For your information, the issue is still occuring in 0.99.1

ecrucru avatar Dec 26 '17 23:12 ecrucru

Works for me on Windows 10. I mean I can delete .pgn .scout .bin .sqlite files after exact four steps you gave. Can you reproduce this on newer Windows versions (7/8/10) or just with XP in VirtualBox?

gbtami avatar Dec 28 '17 11:12 gbtami

In the short term, unfortunately no. May we leave that issue on hold ?

ecrucru avatar Dec 28 '17 22:12 ecrucru

Sure.

gbtami avatar Dec 28 '17 22:12 gbtami