Hello ! I have exception, while using NHIbernate in testing. It is web
site. What could couse it ? Do I have some  problems with threads in
my code, or something wrong with logging in NH ? I use 2.1.

the exception is:

2009-08-20 10:28:24,143 [16] WARN  1010 9
NHibernate.Util.ADOExceptionReporter System.IndexOutOfRangeException:
Probable I/O race condition 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, such as a thread-safe
wrapper returned by TextReader's or TextWriter's Synchronized methods.
This also applies to classes like StreamWriter and StreamReader.
   at System.Buffer.InternalBlockCopy(Array src, Int32 srcOffset,
Array dst, Int32 dstOffset, Int32 count)
   at System.IO.StreamWriter.Write(Char[] buffer, Int32 index, Int32
count)
   at System.IO.TextWriter.WriteLine(String value)
   at System.IO.TextWriter.SyncTextWriter.WriteLine(String value)
   at NHibernate.AdoNet.Util.SqlStatementLogger.LogCommand(String
message, IDbCommand command, FormatStyle style)
   at NHibernate.AdoNet.Util.SqlStatementLogger.LogCommand(IDbCommand
command, FormatStyle style)
   at NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd)
   at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)
   at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean
autoDiscoverTypes, Boolean callable, RowSelection selection,
ISessionImplementor session)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to