theroggy / picasastarter

Automatically exported from code.google.com/p/picasastarter
0 stars 1 forks source link

On some NAS drives with Localized XP, PS does not exit properly #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From user Jochen Rauh:
Running PS on my German environment in mixed XP and Win7 mode, on the XP 
machine I get an issue using a NAS for storing the database.

While the rename back at the end of PicasaRunner.cs (line 329-331) works fine 
with a local database, it fails on my NAS - I get the error message and 
Localized dir is not renamed to english. Probably my qnap NAS needs a second to 
allow for completely freeing database resources before renaming the directory.

Original issue reported on code.google.com by earlb...@gmail.com on 10 Oct 2011 at 12:20

GoogleCodeExporter commented 8 years ago
Implemented in version 1.5.1b3. The message box at the end of picasarunner.cs 
has been enhanced to allow the user to retry the database rename.
The user has tested this fix and it works for him. Since this doesn't affect 
the operation with normal drives I have left the fix in.

Original comment by earlb...@gmail.com on 10 Oct 2011 at 12:49

GoogleCodeExporter commented 8 years ago
Added an automatic retry after 4 seconds. this should eliminate the retry 
message box when the NAS is just a little slow.

Original comment by earlb...@gmail.com on 11 Oct 2011 at 4:10

GoogleCodeExporter commented 8 years ago
Hey Earl, I reviewed the code a bit and made some changes so there is no code 
ducplication and now he retries every .5 seconds, and asks every 4 seconds if 
he needs to keep trying...

Can you have a look if it is better like this?

Original comment by pieter.r...@gmail.com on 3 Nov 2011 at 1:14

GoogleCodeExporter commented 8 years ago
Hi Pieter:
Yes, much better!  Mine was just a patch to satisfy the problem. ThreadSleep is 
better than pause too!

Original comment by earlb...@gmail.com on 3 Nov 2011 at 5:05