Skip to content

Instantly share code, notes, and snippets.

@GraemeF
Created February 17, 2011 11:20
Show Gist options
  • Save GraemeF/831532 to your computer and use it in GitHub Desktop.
Save GraemeF/831532 to your computer and use it in GitHub Desktop.
System.IndexOutOfRangeException was unhandled
Message=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.
Source=System.CoreEx
StackTrace:
Server stack trace:
at System.Buffer.InternalBlockCopy(Array src, Int32 srcOffsetBytes, Array dst, Int32 dstOffsetBytes, Int32 byteCount)
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 System.Console.WriteLine(String value)
at ReactiveUI.StdErrLogger.writeInfo(String message) in c:\Users\paul\My Dropbox\ReactiveUI_Build_DontFuckingDeleteThisAgain\ReactiveUI\ReactiveUI\Logging.cs:line 337
at ReactiveUI.LoggerBase.write(Action`1 channel, String format, Object arg0) in c:\Users\paul\My Dropbox\ReactiveUI_Build_DontFuckingDeleteThisAgain\ReactiveUI\ReactiveUI\Logging.cs:line 232
at ReactiveUI.LoggerBase.InfoFormat(String format, Object arg0) in c:\Users\paul\My Dropbox\ReactiveUI_Build_DontFuckingDeleteThisAgain\ReactiveUI\ReactiveUI\Logging.cs:line 283
at ReactiveUI.ObservableAsPropertyHelper`1.<>c__DisplayClass4.<.ctor>b__0(T x) in c:\Users\paul\My Dropbox\ReactiveUI_Build_DontFuckingDeleteThisAgain\ReactiveUI\ReactiveUI\ObservableAsPropertyHelper.cs:line 52
at System.Collections.Generic.AnonymousObserver`1.Next(T value)
at System.Collections.Generic.AbstractObserver`1.OnNext(T value)
at System.ScheduledObserver`1.<>c__DisplayClassa.<Next>b__8()
at System.ScheduledObserver`1.<EnsureActive>b__5(Action self)
Exception rethrown at [0]:
at System.ScheduledObserver`1.<EnsureActive>b__5(Action self)
at System.Concurrency.Scheduler.<>c__DisplayClass6.<Schedule>b__3()
at System.Concurrency.AsyncLock.Wait(Action action)
Exception rethrown at [1]:
at System.Concurrency.AsyncLock.Wait(Action action)
at System.Concurrency.Scheduler.<>c__DisplayClass6.<Schedule>b__2()
at System.Concurrency.DispatcherScheduler.<>c__DisplayClass1.<Schedule>b__0()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Awesome.App.Main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment