# Random error using menu

**URL:** <http://forum.vvvv.org/t/random-error-using-menu/14165>\
**Category:** bug\
**Tags:** alpha, vl\
**Created:** [October 22, 2016, 3:07am UTC](http://forum.vvvv.org/t/random-error-using-menu/14165 "2016-10-22T03:07:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominikKoller](http://forum.vvvv.org/user_avatar/forum.vvvv.org/dominikkoller/32/192_2.png) [@dominikKoller](http://forum.vvvv.org/u/dominikKoller)\
**Post date:** [October 22, 2016, 3:07am UTC](http://forum.vvvv.org/t/random-error-using-menu/14165/1 "2016-10-22T03:07:03Z")

</div>

I got this error when I tried to open the menu - not sure whether it was the gray square or the file name I clicked. Maybe the error message helps.

\*\*\*\*\*\*\*\*\*\*\*\*\*\* Exception Text \*\*\*\*\*\*\*\*\*\*\*\*\*\*  
System.InvalidCastException: Unable to cast object of type ‘VL.Model.Fragment’ to type ‘VL.Model.Node’.  
at VL.Model.Compound.GetNewElement[TElement](TElement oldElement) in C:\BuildAgent\work\9506352823f45313\vvvv50\VL.Lang\src\ImmutableModel\Basics.cs:line 639  
at VL.Model.Solution.GetNewElement[TElement](TElement oldElement) in C:\BuildAgent\work\9506352823f45313\vvvv50\VL.Lang\src\ImmutableModel\Basics.cs:line 708  
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()  
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)  
at VL.HDE.PatchEditor.NavigationMenuProvider.AddNodesByCategory(MenuEntry menuEntry) in C:\BuildAgent\work\9506352823f45313\vvvv50\VL.UI\src\VL Forms\PatchEditor\NavigationMenuProvider.cs:line 201  
at VL.Lang.Menu.MenuEntry.get\_Entries() in C:\BuildAgent\work\9506352823f45313\vvvv50\VL.Lang\src\_legacy\Menu\MenuEntry.cs:line 149  
at VL.HDE.PatchEditor.NavigationMenuControl.CreateMenuItem(IMenuEntry menuEntry) in C:\BuildAgent\work\9506352823f45313\vvvv50\VL.UI\src\VL Forms\PatchEditor\NavigationMenuControl.cs:line 592  
at VL.HDE.PatchEditor.NavigationMenuControl.ButtonDropDownOpening(Object sender, EventArgs e) in C:\BuildAgent\work\9506352823f45313\vvvv50\VL.UI\src\VL Forms\PatchEditor\NavigationMenuControl.cs:line 823  
at System.Windows.Forms.ToolStripDropDownItem.OnDropDownShow(EventArgs e)  
at System.Windows.Forms.ToolStripDropDownItem.ShowDropDownInternal()  
at System.Windows.Forms.ToolStripDropDownButton.OnMouseDown(MouseEventArgs e)  
at System.Windows.Forms.ToolStripItem.HandleMouseDown(MouseEventArgs e)  
at System.Windows.Forms.ToolStrip.OnMouseDown(MouseEventArgs mea)  
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)  
at System.Windows.Forms.Control.WndProc(Message& m)  
at System.Windows.Forms.ToolStrip.WndProc(Message& m)  
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

---

<div class="post-metadata">

**Author:** ![joreg](http://forum.vvvv.org/user_avatar/forum.vvvv.org/joreg/32/19824_2.png) [@joreg](http://forum.vvvv.org/u/joreg)\
**Post date:** [October 22, 2016, 12:32pm UTC](http://forum.vvvv.org/t/random-error-using-menu/14165/2 "2016-10-22T12:32:25Z")

</div>

for that one we’d need more infos. any way to reproduce this?

---

<div class="post-metadata">

**Author:** ![dominikKoller](http://forum.vvvv.org/user_avatar/forum.vvvv.org/dominikkoller/32/192_2.png) [@dominikKoller](http://forum.vvvv.org/u/dominikKoller)\
**Post date:** [October 22, 2016, 5:06pm UTC](http://forum.vvvv.org/t/random-error-using-menu/14165/3 "2016-10-22T17:06:49Z")

</div>

Sorry, can’t find a way to reproduce. Was hoping the error message helped somehow.

---

<div class="post-metadata">

**Author:** ![system](http://forum.vvvv.org/user_avatar/forum.vvvv.org/system/32/1_2.png) [@system](http://forum.vvvv.org/u/system)\
**Post date:** [October 22, 2017, 5:06pm UTC](http://forum.vvvv.org/t/random-error-using-menu/14165/4 "2017-10-22T17:06:54Z")

</div>

Closed on October 22, 2017, 5:06pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
