Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Weired WPF Crash on Touchscreen Monitor

$
0
0

Hi All

I have a simple WPF application with Black background and a label that says Hello World.

When I run this on a normal monitor it works fine. When I run this on a Touch screen monitor it works fine

until I touch the WPF window client area (Black colored). On such interaction the application crashes (even in debug mode from VS2010). The exception is as follows:

Exception detail:

System.ArgumentException was unhandled
Message='{0}' must be greater than or equal to '{1}'.
Parameter name: maximum
Source=PresentationCore
ParamName=maximum
StackTrace:
     at System.Windows.Input.StylusPointPropertyInfo..ctor(StylusPointProperty stylusPointProperty, Int32 minimum, Int32 maximum, StylusPointPropertyUnit unit, Single resolution)
     at System.Windows.Input.PenContext.InitStylusPointDescription()
     at System.Windows.Input.PenContext.FirePenInRange(Int32 stylusPointerId, Int32[] data, Int32 timestamp)
     at System.Windows.Input.PenThreadWorker.FireEvent(PenContext penContext, Int32 evt, Int32 stylusPointerId, Int32 cPackets, Int32 cbPacket, IntPtr pPackets)
     at System.Windows.Input.PenThreadWorker.ThreadProc()
     at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
     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()

Mouse Clicks/move on this wpf app does not cause any issues but a finger touch does.

Any pointers to help me out.

I have VS2010 RTM, .NET 4.0. The touch monitor is from Feelworld (China made) and the touch drivers are eGalax.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>