Crash during Find Usages

2 posts, 0 answers
  1. Jason
    Jason avatar
    3 posts
    Member since:
    Jan 2009

    Posted 28 Apr 2011 Link to this post

    I got this crash report during a Ctrl-Left Click on a function name in the .Net 4 framework (Stream).

    I was trying to ctrl-left click on a Stream private method (_CloseAsyncActiveEvent) from the .Net 4 framework.  No other assemblies had been loaded.

    Couldn't find a way to open a ticket on this, but wanted to let you know about it.  Thanks for the free decompiler!


    ---------------------------
    Error
    ---------------------------
    An error has occurred. Please, report this exception to the Telerik team (Use CTRL + C to copy the text). Thanks in advance!

     

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Specified element is already the logical child of another element. Disconnect it first.

       at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)

       at System.Windows.FrameworkElement.AddLogicalChild(Object child)

       at System.Windows.Window.OnContentChanged(Object oldContent, Object newContent)

       at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)

       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)

       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)

       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

       at JustDecompile.FindUsages.ViewModels.FindUsagesButtonViewModel.€() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesButtonViewModel.cs:line 33

       at JustDecompile.FindUsages.ViewModels.FindUsagesButtonViewModel.›(AssemblyMemberDefinition member) in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile.FindUsages\ViewModels\FindUsagesButtonViewModel.cs:line 71

       --- End of inner exception stack trace ---

       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)

       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       at System.Delegate.DynamicInvokeImpl(Object[] args)

       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.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

       at System.Windows.Threading.DispatcherOperation.InvokeImpl()

       at System.Threading.ExecutionContext.runTryCode(Object userData)

       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

       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.WrappedInvoke(Delegate callback, 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.Application.RunInternal(Window window)

       at System.Windows.Application.Run()

       at JustDecompile.App.() in c:\B\Behemoth\JustDecompile Production Build\Sources\UI\JustDecompile\obj\Release\App.g.cs:line 16777215
    ---------------------------
    OK  
    ---------------------------

  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 28 Apr 2011 Link to this post

    Hello Jason-

    Thanks for taking the time to get involved in the beta!

    This is a known issue that will be fixed in an upcoming build. The problem is with the Find Usages window. If it's already open, and you Ctrl+Left Click on a tree item, it will throw the error you described. If, however, you close the window first, then do the Ctrl+Left Click, it should work properly.

    Clearly, this is a bug that will be resolved soon. For now, use these steps to successfully use the Find Usages option:

    1. Click the "Find Usages" button in the toolbar OR Ctrl + Left Click a symbol in the tree
    2. When the Find Usages window opens, it will be black and  you will see instructions to "Ctrl + Left Click"
    3. Close the Find Usages window
    4. NOW Ctrl + Left Click on the symbol you want to analyze
    5. You should see the Find Usages window open the search results for the item you selected

    Sorry for the beta inconvenience.

    -Todd
  3. DevCraft banner
Back to Top