I entered ‘Connection.Open’ in the debug console. Note that when I entered it, I had forgotten that I had set the console language to C# and hence forgotten the parens. Connection was a MySQLConnection with an invalid connection string, in case that matters. I was asked by SD to copy the following:
SharpDevelop Version : 4.4.1.9729-7196a277
.NET Version : 4.0.30319.18444
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : Dutch (Netherlands) (nl-NL)
Current UI language : en
Working Set Memory : 159212kb
GC Heap Memory : 30106kb
Unhandled WPF exception
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at ICSharpCode.NRefactory.Visitors.ExpressionEvaluator.Evaluate(INode expression, Boolean permRef, Object data)
at ICSharpCode.NRefactory.Visitors.ExpressionEvaluator.Evaluate(INode code, StackFrame context, Object data)
at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
at ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
at ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__0(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
13:27:21.896 [1] DEBUG - Debugger: Debugger event: OnPaused()
13:27:21.896 [1] INFO - Jump to current line - start
13:27:21.898 [1] INFO - Open file d:\Mijn documenten\GitTest\EcpGitRepo\importer\MySQL Database Loader\MySQL Database Loader\Classes\MySQLConnectionCheck.cs
13:27:21.901 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Mijn documenten\GitTest\EcpGitRepo\importer\MySQL Database Loader\MySQL Database Loader\Classes\MySQLConnectionCheck.cs]
13:27:21.902 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: MySQLConnectionCheck.cs]
13:27:21.902 [1] DEBUG - NavigationService
ActiveViewContent: MySQLConnectionCheck.cs
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
13:27:21.902 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent D:\Mijn documenten\GitTest\EcpGitRepo\importer\MySQL Database Loader\MySQL Database Loader\Classes\MySQLConnectionCheck.cs]
13:27:21.907 [1] INFO - Jump to current line - end (10 ms)
13:27:21.924 [1] INFO - Local Variables refresh
13:27:21.973 [1] INFO - Watch Pad refresh - start
13:27:21.974 [1] INFO - Watch Pad refresh - end (0 ms)
13:27:21.995 [1] DEBUG - Debugger: Evaluated: connstr in 2 ms total
13:27:22.112 [1] DEBUG - Debugger: Evaluated: @this in 9 ms total
13:27:22.152 [1] DEBUG - Debugger: Callback: EvalComplete
13:27:27.920 [1] DEBUG - ActiveContentChanged to
13:27:27.930 [1] DEBUG - Creating pad ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad...
13:28:29.078 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent D:\Mijn documenten\GitTest\EcpGitRepo\importer\MySQL Database Loader\MySQL Database Loader\Classes\MySQLConnectionCheck.cs]
13:28:29.420 [1] INFO - Loading addin Machine.Specifications Addin
13:28:59.919 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
13:29:09.734 [1] DEBUG - Debugger: Evaluated: Connection in 29 ms total
13:29:09.765 [1] DEBUG - Debugger: Callback: ExitThread 5308
13:29:09.765 [1] DEBUG - Debugger: ERROR: Thread does not exist 5308
13:29:09.769 [1] DEBUG - Debugger: Callback: CreateThread 884
13:29:09.773 [1] DEBUG - Debugger: Callback: EvalComplete
13:29:09.781 [1] DEBUG - Debugger: Evaluated: Connection.Open in 70 ms total
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
ProjectService.OpenSolution: [Solution: FileName=D:\Mijn documenten\GitTest\EcpGitRepo\importer\MySQL Database Loader\MySQL Database Loader.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: MySQL Database Loader]