System.InvalidCastException: Unable to cast object of type 'WealthLab.WPF.DoubleUpDown' to type 'WealthLab.WPF.IntegerUpDown'.
at WealthLab.WPF.ParameterEditorPanel.get_Parameters()
at CollectionTests.CheckTests(Object , CollectionTests )
at WealthLab8.ucBuildingBlockPanel.ApplyParameters(ParameterList allParameters)
at WealthLab8.BuildingBlockContainer.PushFilter(Object , Object )
at WealthLab8.BuildingBlockContainer.ApplyParameterValues()
at WealthLab8.designerBuildingBlock.ConnectDescriptor(Object )
at WealthLab8.designerBuildingBlock.UpdateStrategyFromUI()
at WealthLab8.cwStrategy.QueryExporter(Object )
at WealthLab8.cwStrategy.VerifyMapper()
at WealthLab8.cwStrategy.Save()
at WealthLab8.cwStrategy.CloneMapper()
at WealthLab8.cwStrategy.StopMapper(Object param, RoutedEventArgs pred)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at ComparatorDic.PatchStatementSerializer(Object , ComparatorDic )
at WealthLab.WPF.WLButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at WealthLab.WPF.ParameterEditorPanel.get_Parameters()
at CollectionTests.CheckTests(Object , CollectionTests )
at WealthLab8.ucBuildingBlockPanel.ApplyParameters(ParameterList allParameters)
at WealthLab8.BuildingBlockContainer.PushFilter(Object , Object )
at WealthLab8.BuildingBlockContainer.ApplyParameterValues()
at WealthLab8.designerBuildingBlock.ConnectDescriptor(Object )
at WealthLab8.designerBuildingBlock.UpdateStrategyFromUI()
at WealthLab8.cwStrategy.QueryExporter(Object )
at WealthLab8.cwStrategy.VerifyMapper()
at WealthLab8.cwStrategy.Save()
at WealthLab8.cwStrategy.CloneMapper()
at WealthLab8.cwStrategy.StopMapper(Object param, RoutedEventArgs pred)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at ComparatorDic.PatchStatementSerializer(Object , ComparatorDic )
at WealthLab.WPF.WLButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Rename
What are you doing step by step to produce this?
I'm somewhat confused too, since it's not possible to save strategies "in [the Strategy] Evolver".
I'll rename the topic, it sounds misleading. Clearly topic starter is trying to use Blocks somehow but the most important piece is missing.
Your Response
Post
Edit Post
Login is required