Exception w/ DoubleClick on SubChart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jeremy Johnson
Newbie
Newbie
Posts: 16
Joined: Wed Feb 27, 2013 12:00 am

Exception w/ DoubleClick on SubChart

Post by Jeremy Johnson » Tue Sep 17, 2013 5:01 pm

It seems that TeeChart.WPF throws an exception when double clicking on a subchart (well, at least in my example). I have sample code I can provide, however I would rather not attach it to this post. Is there somewhere else I can send it?

Any solution or work around would be much appreciated, as this is a critical issue for our application.

Thanks!

Code: Select all

System.InvalidOperationException was unhandled
  HResult=-2146233079
  Message=Every RoutedEventArgs must have a non-null RoutedEvent associated with it.
  Source=PresentationCore
  StackTrace:
       at System.Windows.RoutedEventArgs.set_Source(Object value)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at Steema.TeeChart.WPF.Tools.InnerChart.FireOnMouseDown(MouseEventArgs e)
       at Steema.TeeChart.WPF.Tools.SubChartTool.MouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
       at Steema.TeeChart.WPF.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e, Cursor& c)
       at Steema.TeeChart.WPF.Chart.BroadcastMouseEvent(MouseEventKinds kind, MouseEventArgs e, ModifierKeys modKeys, Cursor& c)
       at Steema.TeeChart.WPF.Chart.DoMouseDown(Boolean IsDoubleClick, MouseEventArgs e, ModifierKeys Shift)
       at Steema.TeeChart.WPF.TChart.OnMouseDoubleClick(MouseButtonEventArgs e)
       at System.Windows.Controls.Control.HandleDoubleClick(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       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.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       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.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at TChartTest.App.Main() in c:\Dev Scratch\Poor Gantt Performance Test - Copy\TChartTest\TChartTest\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Exception w/ DoubleClick on SubChart

Post by Sandra » Wed Sep 18, 2013 10:25 am

Hello Jeremy Johnson,

Thanks for your information. I can reproduce your problem here and I have added it in bug list report with number [TW16016722]. We will try to fix it to upcoming maintenance releases of TeeChartFor.Net.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jeremy Johnson
Newbie
Newbie
Posts: 16
Joined: Wed Feb 27, 2013 12:00 am

Re: Exception w/ DoubleClick on SubChart

Post by Jeremy Johnson » Wed Sep 18, 2013 3:34 pm

Thanks, Sandra.

Is there any work around you can suggest? If not, is there any way we can get a hot fix?

This is a critical issue which will prevent the shipping of our application and affect product demos.

Thanks for the attention.
Jeremy

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Exception w/ DoubleClick on SubChart

Post by Sandra » Thu Sep 19, 2013 8:37 am

Hello Jeremy Johnson,

I am afraid, that at the moment, I can not offer you any workaround. I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Jeremy Johnson
Newbie
Newbie
Posts: 16
Joined: Wed Feb 27, 2013 12:00 am

Re: Exception w/ DoubleClick on SubChart

Post by Jeremy Johnson » Thu Sep 19, 2013 6:03 pm

Since I don't need to handle double click events from my chart, for the time being it looks like I can work around the exception with a global exception handler.

Code: Select all

        public App()
        {
            DispatcherUnhandledException += ApplicationOnDispatcherUnhandledException;   
        }

        private void ApplicationOnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs args)
        {
            if (args.Exception is InvalidOperationException && 
                args.Exception.Source == "PresentationCore" &&
                args.Exception.StackTrace.Contains("Steema.TeeChart.WPF.Tools.InnerChart.FireOnMouseDown")	
                )
            {
                Debug.WriteLine( "**** Handling exception due to known bug in Steema TeeChart ****");
                args.Handled = true;
            }
        }

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Exception w/ DoubleClick on SubChart

Post by Sandra » Fri Sep 20, 2013 11:12 am

Hello Jeremy Johnson,

Thanks for your information :).

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply