Every time I try to run in debug I get this error, with lots of versions of SharpD (including the latest RC):
SharpDevelop Version : 5.1.0.5175-RC-d52a3334
.NET Version : 4.6.00079
OS Version : Microsoft Windows NT 6.3.9600.0
Current culture : English (Australia) (en-AU)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 391104kb
GC Heap Memory : 120764kb
Unhandled WPF exception
Exception thrown:
Debugger.DebuggerException: Can not raise event within callback.
at Debugger.Process.OnResumed()
at Debugger.Process.AsyncContinue(DebuggeeStateAction action, Thread threadToRun)
at Debugger.Process.AsyncContinue()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Continue()
at ICSharpCode.SharpDevelop.Project.Commands.ContinueDebuggingCommand.Run()
at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
at ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
at ICSharpCode.Core.Presentation.MenuCommand.ShortcutCommandWrapper.Execute(Object parameter)
at ICSharpCode.Core.Presentation.MenuCommand.AmbiguousCommandWrapper.Execute(Object parameter)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
14:55:33.322 [1] INFO - Debugger Command: Start (withDebugger=True)
14:55:33.322 [1] INFO - Loading addin ILSpy AddIn
14:55:33.338 [1] INFO - Saving layout file: C:\Users\Pro Gamer\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml
14:55:33.354 [1] INFO - Loading layout file: C:\Users\Pro Gamer\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False
14:55:33.400 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Editor.Search.SearchResultsPad...
14:55:33.400 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)
14:55:33.400 [1] DEBUG - ChooseLayoutCommand.Run()
14:55:33.400 [1] INFO - Saving layout file: C:\Users\Pro Gamer\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml
14:55:33.523 [1] DEBUG - Service startup: ICSharpCode.SharpDevelop.Dom.ClassBrowser.IClassBrowser
14:55:37.779 [1] ERROR - ThreadException caught
--> Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Debugger.ManagedCallback.BreakOnException(Thread thread)
at Debugger.ManagedCallback.Exception2(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFrame pFrame, UInt32 nOffset, CorDebugExceptionCallbackType _exceptionType, UInt32 dwFlags)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass35_0.<Exception>b__0()
at Debugger.MTA2STA.<>c__DisplayClass6_1.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
14:55:43.338 [31] DEBUG - Telling worker process to exit
14:55:43.338 [31] DEBUG - Waiting for thread-join
14:55:43.338 [36] DEBUG - Cannot read from WorkerProcess 1012: end of stream
14:55:43.338 [36] DEBUG - Stopped reading from WorkerProcess 1012.
14:55:43.339 [36] DEBUG - Telling worker process to exit
14:55:43.339 [36] DEBUG - End of reader thread on WorkerProcess 1012.
14:55:43.340 [31] DEBUG - Joined!
14:55:43.341 [33] DEBUG - Cannot read from WorkerProcess 9212: end of stream
14:55:43.341 [33] DEBUG - Stopped reading from WorkerProcess 9212.
14:55:43.341 [33] DEBUG - Telling worker process to exit
14:55:43.341 [33] DEBUG - End of reader thread on WorkerProcess 9212.
14:55:43.342 [30] DEBUG - Joined!
14:56:29.298 [27] DEBUG - Resolved (Line 164, Col 92) to
14:56:29.313 [1] INFO - Debugger Command: Continue
14:56:29.329 [1] ERROR - Unhandled WPF exception
--> Exception:
Debugger.DebuggerException: Can not raise event within callback.
at Debugger.Process.OnResumed()
at Debugger.Process.AsyncContinue(DebuggeeStateAction action, Thread threadToRun)
at Debugger.Process.AsyncContinue()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Continue()
at ICSharpCode.SharpDevelop.Project.Commands.ContinueDebuggingCommand.Run()
at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter)
at ICSharpCode.Core.CommandWrapper.Execute(Object parameter)
at ICSharpCode.Core.Presentation.MenuCommand.ShortcutCommandWrapper.Execute(Object parameter)
at ICSharpCode.Core.Presentation.MenuCommand.AmbiguousCommandWrapper.Execute(Object parameter)
at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution L:\Projects\ParseHotSpotMD\ParseHotSpotMD.sln with 4 projects]
ProjectService.CurrentProject: [CSharpProject: ParseHotSpotMD]
Workbench.ActiveContent: [AvalonEditViewContent L:\Projects\ParseHotSpotMD\ParseHotSpotMD\Program.cs]