New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception accessing Dictionary<string, string>.Keys at console #811

Open
TobiasKs opened this Issue Mar 7, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@TobiasKs

TobiasKs commented Mar 7, 2018

during halt in an KeyNotFoundException for this Dictionary instance I tried to browse the data structure in the online c# console:
while accessing the dictionaries key collection newProjectColumns.Keys the appended exception was thrown

newProjectColumns
Inncorrect parameter type
newProjectColumns.Count
7
newProjectColumns[0]
Incorrect parameter type for 'key'. Excpeted System.String, seen System.Int32
newProjectColumns.Keys

SharpDevelop Version : 4.4.2.9749-39bf891c
.NET Version : 4.0.30319.42000
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : German (Germany) (de-DE)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 287660kb
GC Heap Memory : 63459kb

Unhandled WPF exception
Exception thrown:
Debugger.DebuggerException: memberInfo
bei Debugger.Value.CheckObject(Value objectInstance, MemberInfo memberInfo)
bei Debugger.Value.GetPropertyValue(Value objectInstance, PropertyInfo propertyInfo, Value[] arguments)
bei Debugger.Value.GetPropertyValue(PropertyInfo propertyInfo, Value[] arguments)
bei ICSharpCode.NRefactory.Visitors.ExpressionEvaluator.FormatValue(Value val)
bei ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.Evaluate(String code)
bei ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AcceptCommand(String command)
bei ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.HandleInput(Key key)
bei ICSharpCode.SharpDevelop.Gui.AbstractConsolePad.<.ctor>b__0(Object sender, KeyEventArgs e)
bei System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
bei System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
bei System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
bei System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
09:06:54.502 [1] DEBUG - Debugger: Process has queued callbacks
09:06:54.503 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_FIRST_CHANCE)
09:06:54.503 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_CATCH_HANDLER_FOUND)
09:06:54.503 [1] DEBUG - Debugger: Callback: EvalException
09:06:54.506 [1] DEBUG - Debugger: Evaluated: newProjectColumns["//Projektdatei"] in 5 ms total
09:06:54.506 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:12.029 [1] DEBUG - Debugger: Evaluated: newProjectColumns in 0 ms total
09:07:12.052 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:12.056 [1] DEBUG - Debugger: Evaluated: newProjectColumns.Count in 29 ms total
09:07:19.087 [1] DEBUG - Debugger: Evaluated: filename in 0 ms total
09:07:19.131 [1] DEBUG - Debugger: Evaluated: filename in 10 ms total
09:07:26.796 [1] DEBUG - Debugger: Evaluated: newProjectColumns in 0 ms total
09:07:26.798 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:26.801 [1] DEBUG - Debugger: Evaluated: 0 in 4 ms total
09:07:26.897 [1] DEBUG - Debugger: Evaluated: newProjectColumns[0] in 100 ms total
09:07:35.266 [1] DEBUG - Debugger: Evaluated: newProjectColumns in 0 ms total
09:07:35.453 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:35.456 [1] DEBUG - Debugger: Evaluated: newProjectColumns.Keys in 191 ms total
09:07:35.459 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:35.463 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:47.282 [1] DEBUG - Debugger: Evaluated: newProjectColumns in 1 ms total
09:07:47.284 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:47.287 [1] DEBUG - Debugger: Evaluated: newProjectColumns.Keys in 6 ms total
09:07:47.290 [1] DEBUG - Debugger: Callback: EvalComplete
09:07:47.294 [1] DEBUG - Debugger: Callback: EvalComplete

---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent:
ProjectService.OpenSolution: [Solution: FileName=C:\Users\TobiasKs\Documents\PRGSOURCE\DEV_TOOLS\2014_Herakles_sharpdev\Herakles.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: HERAKLES_1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment