Hi Stefan,
thank you very much for that help :)
Giovanni, I'm trying to build pyinstaller with Stefan's
fix without any luck. I tried using the latest VS 2008 and
Visual Studio 6, but unfortunately, scons has problems with
both (not being able to find 'cl', even in the Visual
Studio command line shell :(
Which compiler do you use to build pyinstaller? Does anyone
have a MS Visual Studio project file that I can use to
compile it?
Thanks,
Mary.
re:
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
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---