실제 장치에서 내 응용 프로그램을 디버깅하는 동안 문제가 발생했습니다. 중단 점이 트리거 된 후 약 6 초 정도 기다렸다가 (코드 수행 중이나 상관없이) 아무것도) 프로그램이 종료됩니다. 출력 창 보여준다안드로이드 용 모노 - 장치 디버깅 문제
02-22 10:31:42.599 I/mono (32532): Stacktrace: 02-22 10:31:42.599 I/mono (32532): The program 'Mono' has exited with code 255 (0xff).
I는 두 개의 서로 다른 디바이스 (ASUS Padfone 및 HUAWEI C8812 모두 안드로이드 4.0.4), 동일한 결과를 디버깅을 시도했다.
제한 시간 내에 응답하지 않기 때문에 장치가 프로그램을 종료 한 것처럼 보입니다. 물론 그것은 반응하지 않을 것입니다! 나는 내 코드를 밟고있다! BTW 에뮬레이터에서 디버깅
괜찮 (하지만 SLOOOOW!를 그리고 너무 자주 충돌) 내 monodroid의 버전은 4.4.55이다
를, 나는 윈도우 7 (64 비트)에서 SP1과 비주얼 스튜디오 2010을 사용하고 있습니다
class OwnerDrawView : View
{
PointF m_screenPosition;
public OwnerDrawView(Context context)
: base(context)
{
this.Touch += new EventHandler<TouchEventArgs>(OwnerDrawView_Touch);
this.SetWillNotDraw(false);
}
protected override void OnDraw(Canvas canvas)
{
Core.Instance.OnDraw(canvas);
base.OnDraw(canvas);
}
void OwnerDrawView_Touch(object sender, View.TouchEventArgs e)
{
m_screenPosition = new PointF(e.Event.GetX(), e.Event.GetY());
switch (e.Event.Action) {
case MotionEventActions.Down:
Core.Instance.OnTouchDown(m_screenPosition);
break;
case MotionEventActions.Move:
Core.Instance.OnTouchMove(m_screenPosition);
break;
case MotionEventActions.Up:
Core.Instance.OnTouchUp(m_screenPosition);
break;
}
}
}
은 "코어"클래스를 신경 쓰지 마, 그것은 (여기 중요하지 않아 그렇게 소리 있지만^_^:
사람들이 문제를 해결할 것이라고 생각하기 때문에 원래 질문에이 답변을 추가하십시오. – TimothyP