Bugs item #1728850, was opened at 2007-05-31 11:59
Message generated for change (Comment added) made by drieseng
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1728850&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: Core
Group: 0.85
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: simonsunny (simonsunny)
>Assigned to: Gert Driesen (drieseng)
Summary: Unhandled Exception: System.IndexOutOfRangeException: 

Initial Comment:
We have a system.build file in which 14 msi's were created by using for each 
task. This is working fine till 0.85 RC3 version of nant is used. When we 
upgraded to 0.85 then the build is getting failed. 
So we removed the for each task and craeted indidvidual msi build files and 
called these files using nant task in the system.buld file. 
But still we are randomly getting the follwoing error.


============error==========================
Unhandled Exception: System.IndexOutOfRangeException: Probable I/O race conditio
n detected while copying memory. The I/O package is not thread safe by default.
In multithreaded applications, a stream must be accessed in a thread-safe way, s
uch as a thread-safe wrapper returned by TextReader's or TextWriter's Synchroniz
ed methods. This also applies to classes like StreamWriter and StreamReader.
   at System.Buffer.InternalBlockCopy(Array src, Int32 srcOffset, Array dst, Int
32 dstOffset, Int32 count)
   at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Flush()
   at NAnt.Core.Tasks.ExternalProgramBase.StreamReaderThread_Error()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C
ontextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
===========================================

Then we tryed this in a differnt system which has only .Net 1.1 installed.
Then we didnt got this error. But when we installed the .Net 2.0 , we started 
getting this error.
   

----------------------------------------------------------------------

>Comment By: Gert Driesen (drieseng)
Date: 2008-02-09 21:41

Message:
Logged In: YES 
user_id=707851
Originator: NO

No response from submitter.

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2007-12-12 23:16

Message:
Logged In: YES 
user_id=707851
Originator: NO

This fix is part of NAnt 0.86 Beta 1.

Can you try if it works for you with that release?

----------------------------------------------------------------------

Comment By: Scott N. Smith (scottnsmith)
Date: 2007-12-12 23:12

Message:
Logged In: YES 
user_id=371493
Originator: NO

I've run into this also.  When I looked at the source code, this is a
threading problem.  To the previous comment, what release will this fix go
into?

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2007-06-10 14:44

Message:
Logged In: YES 
user_id=707851
Originator: NO

This should now be fixed in CVS. Can you build NAnt from CVS, or do you
want me to upload a new nightly build ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1728850&group_id=31650

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to