On 18.07.2012 16:46, Jonathan Pryor wrote: > On Jul 18, 2012, at 9:13 AM, Meinrad Recheis wrote: >> Would be nice, if you guys could do a test on a Galaxy Tab 10.1. > I'll see if I can readily obtain one. In theory we have one around here... Any news about my test program on your Galaxy Tab?
I just wrote the equivalent test program in Java and even after running for a very long time it did not deadlock on my Galaxy Tab which hangs within minutes (if not seconds) executing the equivalent Mono program. I am afraid the deadlock is in fact caused by synchronization code in Mono for Android. Even if the likeliness of the deadlock to happen is low on other devices it does not mean it can not happen. This is a huge problem for Mono apps. I hope you are going to review the synchronization soon. Please keep me posted. -- Henon For the reference, here is the Java Testprogram I used: package com.example.deadlockrepro; import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.MenuItem; import android.widget.TextView; import android.support.v4.app.NavUtils; public class MainActivity extends Activity { Thread m_thread; public boolean stop; int i=0; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); m_thread=new Thread(new Runnable() { public void run() { while(!stop) { try { Thread.sleep(10); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } i+=1; runOnUiThread(new Runnable() { public void run() { TextView hello=(TextView)findViewById(R.id.hello); hello.setText("cycle "+i); } }); } } }); m_thread.start(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true; } } > > Which Android version are you on? 3.1? 4.0? > > Thanks, > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid