Bugs item #1617963, was opened at 2006-12-18 13:19 Message generated for change (Comment added) made by agarcia0178 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1617963&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tasks Group: 0.85 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Alexandre Garcia (agarcia0178) Assigned to: Nobody/Anonymous (nobody) Summary: resgen task fails due to file lock Initial Comment: On a Bi-opteron, dual core, XP Pro SP1 we get the following exception while executing resgen task (within csc or alone, and it does not depend on the number of resx compiled): resgen tasks fails: Cannot delete file 'C:\temp\tmp219.tmp\ResGen.exe'. Access to the path "C:\temp\tmp219.tmp\ResGen.exe" is denied The Resgen.exe is actually copied in the .tmp directory. We only run one instance of nant With nant-0.85-nightly-2006-04-30 the script fails about 1 time on 2 With nant-0.85 it always fails but not always on the same resgen instance. Could this be due to multithreading ? ---------------------------------------------------------------------- >Comment By: Alexandre Garcia (agarcia0178) Date: 2007-02-20 18:32 Message: Logged In: YES user_id=1652519 Originator: YES The code in ResgenTask and ExternalProgramBase does not catch temp files deletion failure. failonerror=false is not sufficient to catch the exception We resolved the issue by catching exceptions in the aforementioned classes. We also added temporizations to limit exceptions. I don't have the code at hand but it was rather straightforward. The IO problem should not occur normally, but there it seems to be due to unstable hardware. ---------------------------------------------------------------------- Comment By: smc (smcclarygs) Date: 2007-02-20 17:51 Message: Logged In: YES user_id=1724339 Originator: NO Additional Info - my 'fast PC' resgen situation is under Visual Studio 2003 under Windows XP SP2 ---------------------------------------------------------------------- Comment By: smc (smcclarygs) Date: 2007-02-20 17:45 Message: Logged In: YES user_id=1724339 Originator: NO I have the same resgen problem. It prevents us from upgrading from nant 0.84 to nant 0.85. The code compiles ok under 0.85 on a PC with Intel Pentium II processor 993 MHz. But the code compile fails under 0.85 with the ResGen problem on a newer PC with Intel Xeon CPU 5140 @ 2.33 GHz. Nant 0.84 successfully builds the software on both PCs. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1617963&group_id=31650 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers