Hi Mary, Giovanni,

i encountered the same problem with svnmerge.exe and tracked it down
some while ago. I wondered that Pyinstaller left behind lots of _MEI*
directories in the temp directory. Removing all these directories
caused svnmerge.exe to be reliable again.

Checking the code i discovered that it's indeed a timing issue. In
line 43 of launch.c the return value of the remove() function is not
checked. Removing the executed binary (and in succession the
directory) fails quite often since the file handle is not yet released
by the O/S yet. Replacing the lines

1042    else
1043            remove(fnm);

by

1042    else if (remove(fnm))
1043    {
1044            /* spend a tick to release file handle */
1045            Sleep(100);
1046            remove(fnm);
1047    }

turned out to fix the problem. It's just a workaround - i'm sure,
there exists a better solution.

I hope that helps.

Stefan Oblinger
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to