This project is read-only.
0

Closed

tab 'Table' throws exception when Position Ontology is used

description

exception in
ExtractCols in PositionColumnEmitter

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>XemlInteractiveDesigner RC2.vshost.exe</AppDomain><Exception><ExceptionType>System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>An item with the same key has already been added.</Message><StackTrace> at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)
at Xeml.Sampling.PositionColumnEmitter.ExtractCols(StoryBase storyBase) in D:\jahu\Visual Studio 2010\Xeml\XemlCore\Sampling\Formatter\PositionColumnEmitter.cs:line 65
at Xeml.Sampling.PositionColumnEmitter.Emit(IDocument xemlDoc) in D:\jahu\Visual Studio 2010\Xeml\XemlCore\Sampling\Formatter\PositionColumnEmitter.cs:line 17
at Xid.Controls.TableFormatterCtrl.Format(IDocument xemlDoc) in D:\jahu\Visual Studio 2010\Xeml\XiD\XidControls\TableFormatterCtrl.cs:line 119
at XemlInteractiveDesigner.MainForm.OnViewNavigation(Object sender, EventArgs e) in D:\jahu\Visual Studio 2010\Xeml\XiD\XemlInteractiveDesigner\MainForm.cs:line 734
at ComponentFactory.Krypton.Navigator.KryptonNavigator.OnSelectedPageChanged(EventArgs e)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.set_SelectedPage(KryptonPage value)
at ComponentFactory.Krypton.Navigator.ViewDrawNavCheckButtonBase.OnClick(Object sender, EventArgs e)
at ComponentFactory.Krypton.Navigator.ViewDrawNavCheckButtonBar.OnClick(Object sender, EventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.OnClick(MouseEventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseDown(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.OnMouseDown(MouseEventArgs e)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message&amp;amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.WndProc(Message&amp;amp; m)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.WndProc(Message&amp;amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; 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 XemlInteractiveDesigner.Program.Main() in D:\jahu\Visual Studio 2010\Xeml\XiD\XemlInteractiveDesigner\Program.cs:line 24
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
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.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.ArgumentException: An item with the same key has already been added.
at System.Collections.Generic.Dictionary
2.Insert(TKey key, TValue value, Boolean add)
at Xeml.Sampling.PositionColumnEmitter.ExtractCols(StoryBase storyBase) in D:\jahu\Visual Studio 2010\Xeml\XemlCore\Sampling\Formatter\PositionColumnEmitter.cs:line 65
at Xeml.Sampling.PositionColumnEmitter.Emit(IDocument xemlDoc) in D:\jahu\Visual Studio 2010\Xeml\XemlCore\Sampling\Formatter\PositionColumnEmitter.cs:line 17
at Xid.Controls.TableFormatterCtrl.Format(IDocument xemlDoc) in D:\jahu\Visual Studio 2010\Xeml\XiD\XidControls\TableFormatterCtrl.cs:line 119
at XemlInteractiveDesigner.MainForm.OnViewNavigation(Object sender, EventArgs e) in D:\jahu\Visual Studio 2010\Xeml\XiD\XemlInteractiveDesigner\MainForm.cs:line 734
at ComponentFactory.Krypton.Navigator.KryptonNavigator.OnSelectedPageChanged(EventArgs e)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.set_SelectedPage(KryptonPage value)
at ComponentFactory.Krypton.Navigator.ViewDrawNavCheckButtonBase.OnClick(Object sender, EventArgs e)
at ComponentFactory.Krypton.Navigator.ViewDrawNavCheckButtonBar.OnClick(Object sender, EventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.OnClick(MouseEventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseDown(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.OnMouseDown(MouseEventArgs e)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.WndProc(Message&amp; m)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; 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 XemlInteractiveDesigner.Program.Main() in D:\jahu\Visual Studio 2010\Xeml\XiD\XemlInteractiveDesigner\Program.cs:line 24
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
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.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>
Closed Mar 1, 2013 at 2:41 PM by drjahu

comments

wrote Mar 1, 2013 at 2:41 PM

Resolved with changeset 83269.

bitdisaster wrote Mar 1, 2013 at 6:10 PM

I knew you can do it :)

wrote May 15, 2013 at 2:17 AM