Sysprogs forums › Forums › VisualGDB › Null Reference Error After PC Crash
- This topic has 2 replies, 2 voices, and was last updated 6 years, 8 months ago by TvdVen.
-
AuthorPosts
-
February 26, 2018 at 11:20 #20266TvdVenParticipant
Today I attempted to add a unit testing project to my VisualGDB solution. Unfortunately, my PC crashed during this process.
Since then, when attempting to do the same, I receive a null reference exception in Visual Studio.I have tried uninstalling and re-installing VisualGDB, as creating non-VisualGDB projects in Visual Studio still seems to function properly.
The following is the full exception information:
VisualGDB version: 5.3.18.1973 ------------------ System.Reflection.TargetInvocationException ------------------ System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at VisualGDB.Common_GUI.WPF.TestFrameworkSelectionControl.UpdateItemList() at VisualGDB.Common_GUI.WPF.TestFrameworkSelectionControl.set_ProjectType(ToolchainType value) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at System.Xaml.Schema.SafeReflectionInvoker.InvokeMethodCritical(MethodInfo method, Object instance, Object[] args) at System.Xaml.Schema.SafeReflectionInvoker.InvokeMethod(MethodInfo method, Object instance, Object[] args) at System.Xaml.Schema.XamlMemberInvoker.SetValueSafeCritical(Object instance, Object value) at System.Xaml.Schema.XamlMemberInvoker.SetValue(Object instance, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) at System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent) at System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx) at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx) at System.Xaml.XamlObjectWriter.WriteEndMember() at System.Xaml.XamlWriter.WriteNode(XamlReader reader) at System.Windows.Markup.WpfXamlLoader.TransformNodes(XamlReader xamlReader, XamlObjectWriter xamlWriter, Boolean onlyLoadOneNode, Boolean skipJournaledProperties, Boolean shouldPassLineNumberInfo, IXamlLineInfo xamlLineInfo, IXamlLineInfoConsumer xamlLineInfoConsumer, XamlContextStack 1 stack, IStyleConnector styleConnector) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at VisualGDB.WPF.Wizards.Embedded.EmbeddedProjectTypePage.InitializeComponent() at VisualGDB.WPF.Wizards.Embedded.EmbeddedProjectTypePage..ctor(String projectName) at VisualGDB.Wizard.Embedded.EmbeddedProjectWizardImpl.c(EmbeddedWizardState c, String a, String b) at VisualGDB.Wizard.Embedded.EmbeddedProjectWizardImpl.DoRunWizardOrThrowException(hj1 a, String b, String c) at yv1 1.Execute(Object c, Int32 e, Object[]& a, Object[]& b, wizardResult& d) ------------------ Inner exception ------------------ ------------------ System.NullReferenceException ------------------ System.NullReferenceException: Object reference not set to an instance of an object. at VisualGDB.Common_GUI.WPF.TestFrameworkSelectionControl.UpdateItemList() at VisualGDB.Common_GUI.WPF.TestFrameworkSelectionControl.set_ProjectType(ToolchainType value)
Can anyone offer advice? I’m at a loss for what to try next.
February 27, 2018 at 02:54 #20277supportKeymasterHi,
This could indicate a corrupt test framework cache. Please try deleting the %LOCALAPPDATA%\VisualGDB\TestFrameworks folder.
If this doesn’t help, please open the View->Other Windows->VisualGDB Diagnostics Console and try reproducing the problem again, then post the diagnostic output. This should help us pinpoint this.
March 5, 2018 at 10:14 #20318TvdVenParticipantThis did resolve my issue, thank you 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.