我想在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