Exception when touching tablet

Jul 29, 2014 at 4:16 PM
I use the current Version of OxyPlot on a Windows 8.1 32 bit tablet. When I touch the Plot-Window I got a System.NullReferenceException():

with the following callstack
Oxy.Plot.Wpf.dll!OxyPlot.Wpf.PlotView.OnManipulationStarted()
PresentationCore.dll!System.Windows.UIElement.OnManipulationStartedThunk()
...

On a PC, my application works fine but there I did not have Touchscreen Events.

My application was designed for Desktop and does not use excplicitally Touch Events but if so, it should not Crash.

Regards,
Georg
Aug 8, 2014 at 7:16 AM
The is only there when using OxyPlot.dll and OxyPlot.Wpf.dll from download here. It is away when compiling this DLLs from sources with Visual Studio 2013.
Coordinator
Aug 8, 2014 at 8:35 AM
at what line are you getting the null ref exception?
Aug 8, 2014 at 10:36 AM
Edited Aug 8, 2014 at 11:32 AM
I only have this Information:

Problemsignatur:
Problemereignisname: CLR20r3
Problemsignatur 01: BDCViewer.exe
Problemsignatur 02: 1.1.0.0
Problemsignatur 03: 53e4a545
Problemsignatur 04: OxyPlot.Wpf
Problemsignatur 05: 2014.1.319.1
Problemsignatur 06: 53b1ce0a
Problemsignatur 07: 246
Problemsignatur 08: 29
Problemsignatur 09: System.NullReferenceException
Betriebsystemversion: 6.3.9600.2.0.0.768.101
Gebietsschema-ID: 1031
Zusatzinformation 1: 5861
Zusatzinformation 2: 5861822e1919d7c014bbb064c64908b2
Zusatzinformation 3: 4754
Zusatzinformation 4: 47547fafc9a3073a5bbe8e69322a8db5

I think, it is here:
public partial class PlotView
{
    /// <summary>
    /// Called when the <see cref="E:System.Windows.UIElement.ManipulationStarted" /> event occurs.
    /// </summary>
    /// <param name="e">The data for the event.</param>
    protected override void OnManipulationStarted(ManipulationStartedEventArgs e)
    {
        base.OnManipulationStarted(e);
        if (e.Handled)
        {
            return;
        }
=> e.Handled = this.Controller.HandleTouchStarted(this, e.ToTouchEventArgs(this));
    }
Oct 1, 2014 at 11:14 AM
I have the same problem. Is there any solution? Thank you in advance!
Oct 1, 2014 at 1:56 PM
The Problem was away when using self-compiled OxyPlot.dll and OxyPlot.Wpf.dll. I did the compiling with Visual Studio 2013.