I received this unhandled error while attempting to create a C++ Project. Nothing fancy and the name of the project that was entered was simply TestProject.
SharpDevelop Version : 5.1.0.5216-0e58df71
.NET Version : 4.7.02053
OS Version : Microsoft Windows NT 6.3.9600.0
Current culture : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 235740kb
GC Heap Memory : 82919kb
at ICSharpCode.SharpDevelop.Logging.SDTraceListener.Fail(String message, String detailMessage) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Logging\SDTraceListener.cs:line 57
at ICSharpCode.SharpDevelop.Logging.SDTraceListener.Fail(String message) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Logging\SDTraceListener.cs:line 49
at System.Diagnostics.TraceInternal.Fail(String message)
at System.Diagnostics.Debug.Assert(Boolean condition)
at ICSharpCode.SharpDevelop.Project.MSBuildBasedProject.get_MSBuildProjectFile() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Base\Project\Src\Project\MSBuildBasedProject.cs:line 101
at ICSharpCode.CppBinding.Project.CppProject.AddProjectConfigurationsItemGroup() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\AddIns\BackendBindings\CppBinding\CppBinding\Project\CppProject.cs:line 186
at ICSharpCode.CppBinding.Project.CppProject..ctor(ProjectCreateInformation info) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\AddIns\BackendBindings\CppBinding\CppBinding\Project\CppProject.cs:line 41
at ICSharpCode.CppBinding.CppProjectBinding.CreateProject(ProjectCreateInformation info) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\AddIns\BackendBindings\CppBinding\CppBinding\CppProjectBinding.cs:line 45
at ICSharpCode.SharpDevelop.Templates.ProjectDescriptor.CreateProject(ProjectTemplateResult templateResults, String defaultLanguage, ISolutionFolder target) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Templates\Project\ProjectDescriptor.cs:line 431
at ICSharpCode.SharpDevelop.Templates.ProjectTemplateImpl.CreateProjects(ProjectTemplateOptions options) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Templates\Project\ProjectTemplateImpl.cs:line 284
at ICSharpCode.SharpDevelop.Templates.ProjectTemplate.CreateAndOpenSolution(ProjectTemplateOptions options, String solutionDirectory, String solutionName) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Base\Project\Templates\ProjectTemplate.cs:line 65
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.CreateProject() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Base\Project\Src\Gui\Dialogs\NewProjectDialog.cs:line 338
at ICSharpCode.SharpDevelop.Project.Dialogs.NewProjectDialog.TryCreateProject(Object sender, EventArgs e) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Base\Project\Src\Gui\Dialogs\NewProjectDialog.cs:line 285
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at ICSharpCode.SharpDevelop.UIService.ShowNewProjectDialog(ISolutionFolder solutionFolder, IEnumerable`1 templates) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Services\UIService.cs:line 72
at ICSharpCode.SharpDevelop.Project.Commands.CreateNewSolution.Run() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Base\Project\Src\Commands\FileMenuCommands.cs:line 31
at ICSharpCode.Core.AbstractMenuCommand.System.Windows.Input.ICommand.Execute(Object parameter) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Core\Project\Src\Util\AbstractCommand.cs:line 76
at ICSharpCode.Core.CommandWrapper.Execute(Object parameter) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Core\Project\Src\Util\CommandWrapper.cs:line 203
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext 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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.Run(IList`1 fileList) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Workbench\WorkbenchStartup.cs:line 160
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Sda\CallHelper.cs:line 167
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Sda\CallHelper.cs:line 143
at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Sda\SharpDevelopHost.cs:line 129
at ICSharpCode.SharpDevelop.Startup.SharpDevelopMain.RunApplication() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Startup\SharpDevelopMain.cs:line 226
at ICSharpCode.SharpDevelop.Startup.SharpDevelopMain.Run() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Startup\SharpDevelopMain.cs:line 124
at ICSharpCode.SharpDevelop.Startup.SharpDevelopMain.Main(String[ args) in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Startup\SharpDevelopMain.cs:line 71
---- Recent log messages:
11:25:51.694 [1] DEBUG - ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow: MainView.xaml]
11:25:51.694 [1] DEBUG - NavigationService
ActiveViewContent: MainView.xaml
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
11:25:51.695 [1] DEBUG - ActiveViewContentChanged to [AvalonEditViewContent C:\Users\mlk\Documents\SharpDevelop Projects\TestProject\TestProject\MainView.xaml]
11:25:58.892 [1] WARN - Codon (MenuBuilder) specified in the insertbefore of the [Codon: name = MenuItem, id = UnitTestMenu, addIn=C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\bin\..\AddIns\Analysis\UnitTesting\UnitTesting.addin] codon does not exist!
11:25:58.895 [1] DEBUG - Resolved (Line 8, Col 37) to [ErrorResolveResult ?]
11:25:58.899 [1] INFO - Loading addin Machine.Specifications AddIn
11:25:58.903 [1] DEBUG - Resolved (Line 8, Col 37) to [ErrorResolveResult ?]
11:25:58.906 [1] DEBUG - Resolved (Line 8, Col 37) to [ErrorResolveResult ?]
11:25:58.909 [1] DEBUG - Resolved (Line 8, Col 37) to [ErrorResolveResult ?]
11:25:58.910 [1] DEBUG - Resolved (Line 8, Col 37) to [ErrorResolveResult ?]
11:25:58.910 [1] DEBUG - Resolved (Line 8, Col 37) to [ErrorResolveResult ?]
11:26:13.970 [1] DEBUG - Resolved (Line 15, Col 8) to [TypeResolveResult System.Windows.Controls.TextBox]
11:26:14.955 [1] DEBUG - Resolved (Line 14, Col 4) to [MemberResolveResult [Property System.Windows.Controls.Grid.RowDefinitions]]
11:26:29.650 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\mlk\Documents\SharpDevelop Projects\TestProject\TestProject\MainView.xaml]' to key '1e13ec5:C:\USERS\MLK\DOCUMENTS\SHARPDEVELOP PROJECTS\TESTPROJECT\TESTPROJECT\MAINVIEW.XAML'
11:26:29.662 [1] DEBUG - ActiveViewContentChanged to
11:26:29.664 [1] DEBUG - ActiveContentChanged to [AvalonEditViewContent C:\Users\mlk\Documents\SharpDevelop Projects\TestProject\TestProject\MainView.xaml.cs]
11:26:29.665 [1] DEBUG - OpenedFileClosed: C:\Users\mlk\Documents\SharpDevelop Projects\TestProject\TestProject\MainView.xaml
11:26:29.666 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\Users\mlk\Documents\SharpDevelop Projects\TestProject\TestProject\MainView.xaml.cs]' to key '1e13ec5:C:\USERS\MLK\DOCUMENTS\SHARPDEVELOP PROJECTS\TESTPROJECT\TESTPROJECT\MAINVIEW.XAML.CS'
11:26:29.669 [1] DEBUG - OpenedFileClosed: C:\Users\mlk\Documents\SharpDevelop Projects\TestProject\TestProject\MainView.xaml.cs
11:26:29.672 [1] INFO - CurrentProject changed to null
11:26:29.776 [1] INFO - Saved CodeCompletionDataUsageCache (0 of 0 items)
11:26:29.779 [1] DEBUG - ActiveContentChanged to
11:26:29.779 [1] DEBUG - ActiveWorkbenchWindowChanged to
11:26:29.780 [1] DEBUG - CompilerMessageView: Combined 3 appends.
11:26:29.779 [17] DEBUG - Serializing 4 files to C:\Users\mlk\AppData\Local\Temp\SharpDevelop5.1\Debug\TestProject.ecd5dce0.prj
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: <null>
ProjectService.CurrentProject: <null>
Workbench.ActiveContent: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
at System.Windows.Threading.Dispatcher.VerifyAccess()
at ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Services\DispatcherMessageLoop.cs:line 65
at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Workbench\WpfWorkbench.cs:line 392
at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<>c.<InitializeWorkbench>b__4_0() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\SharpDevelop\Workbench\WorkbenchStartup.cs:line 83
at ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo() in C:\Users\mlk\Documents\Visual Studio 2015\Projects\SharpDevelop_5.1.0.5216_Source\src\Main\Core\Project\Src\Services\ApplicationStateInfoService.cs:line 84