[Bug 2287] Error updating Free Agent message list ("rename primary: File already exists")

Wine Bugs wine-bugs at winehq.org
Wed Jun 23 05:41:26 CDT 2004


http://bugs.winehq.org/show_bug.cgi?id=2287





------- Additional Comments From rklazes at xs4all.nl  2004-23-06 05:41 -------
The problem can be seen here:
  0009:Ret  kernel32.GetFileAttributesA() retval=00000020 ret=00453b75
  0009:Call kernel32.DeleteFileA(5687d148 "F:\\Program
Files\\Agent\\DATA\\000011B1.BID") ret=00453ba8
...
  0009:Ret  kernel32.DeleteFileA() retval=00000001 ret=00453ba8

Agent deletes the file 11b1.bid. The return value of 1 means "success". 

Then it wants to rename another:

  0009:Call kernel32.MoveFileA(5687e5e8 "F:\\Program
Files\\Agent\\DATA\\000011B1.IDX",5687d148 "F:\\Program
Files\\Agent\\DATA\\000011B1.BID") ret=00453c1d
...
  0009:Ret  kernel32.MoveFileA() retval=00000000 ret=00453c1d
  0009:Call kernel32.GetLastError() ret=00453c2b
  0009:Ret  kernel32.GetLastError() retval=000000b7 ret=00453c2b
The return value of MoveFileA means unsuccessfull, and the LastError b7 means
"file exists".


  0009:Call kernel32.Sleep(000001f4) ret=00453c39
  0009:Call ntdll.NtDelayExecution(00000000,5570f0f0) ret=55360cb3
  0009:Ret  ntdll.NtDelayExecution() retval=00000000 ret=55360cb3
  0009:Ret  kernel32.Sleep() retval=00000000 ret=00453c39
  0009:Call kernel32.MoveFileA(5687e5e8 "F:\\Program
Files\\Agent\\DATA\\000011B1.IDX",5687d148 "F:\\Program
Files\\Agent\\DATA\\000011B1.BID") ret=00453c1d

Agent wait half a second and retries the operation. There are some more retries
until Agent gives up. Agent retries because a file is only finally deleted when
the last handle opend for that file is closed. Somehow this does not happen.

Is it possible that there is more then one wine process active, and that one is
"hung" ?

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list