我想在Silverlight中模拟TouchPoint
s。下面的代码已经引发了一个未处理的异常:Silverlight new TouchPoint()导致程序崩溃
currentTouchPoints[i] = new TouchPoint();
currentTouchPoints[i].SetValue(TouchPoint.PositionProperty,
new Point(x[i]+100+i*100,y[i]+500));
到new TouchPoint()
第一次调用,使程序崩溃。
究竟哪一行*正在导致崩溃?我很难相信对新TouchPoint()的调用是负责任的。除非'i'超出'currentTouchPoints'数组的范围。 – ChrisF 2011-12-21 12:29:47
你是什么意思?抛出什么异常? – 2011-12-21 13:05:37
新的TouchPoint行导致崩溃。当我调试它调用Application_UnhandledException并没有任何反应。 – user1102059 2011-12-21 13:24:52