Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Application hangs when calling Quit() on HandlerThread

$
0
0

All, using Xamarin's default HelloWorld application, I've recreated a case where invoking Quit() on a HandlerThread results in a hung application (clicking the "click me" button results in a change in color and a hung app). Please see the attached sample project. The attached project includes a WorkerThread class that is a subclass of HandlerThread. I found that if I include an OnLooperPrepared() override, the app will hang if I invoke Quit() on the thread. Without the override, the app will not hang. To reproduce this issue, simply uncomment the "#define INCLUDE_LOOPER_OVERRIDE" at the top of MainActivity.cs. This issue seems to have been introduced as a result of upgrading to Xamarin Studio 4.2.1 build 1 and did not occur with 4.2 build 2. Any help that you might be able to provide would be greatly appreciated. Below are details about the version of Xamarin that I'm running. Thanks in advance, Dave Schulte

=== Xamarin Studio ===

Version 4.2.1 (build 1) Installation UUID: 6f7c36db-b063-41d3-aa0d-4184811018e8 Runtime: Mono 3.2.5 ((no/964e8f0) GTK+ 2.24.20 theme: Raleigh GTK# (2.12.0.0) Package version: 302050000

=== Xamarin.Android ===

Version: 4.10.1 (Enterprise Edition) Android SDK: XXX/adt-bundle-mac-x86_64/sdk Supported Android versions: 2.1 (API level 7) 2.2 (API level 8) 2.3 (API level 10) 3.1 (API level 12) 4.0 (API level 14) 4.0.3 (API level 15) 4.1 (API level 16) 4.2 (API level 17) 4.3 (API level 18) Java SDK: /usr java version "1.7.0_17" Java(TM) SE Runtime Environment (build 1.7.0_17-b02) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

=== Apple Developer Tools ===

Not Found

=== Xamarin.iOS ===

Version: 7.0.4.209 (Starter Edition) Hash: 23a0827 Branch: Build date: 2013-11-11 16:04:00-0500

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 402010001 Git revision: 844a84fe0aa0cb5f986d4e3c4807a51487d07845 Build date: 2013-11-13 22:12:16+0000 Xamarin addins: 97e44e4863da6c479427794457637e75b3d22600

=== Operating System ===

Mac OS X 10.8.5 Darwin XXXX 12.5.0 Darwin Kernel Version 12.5.0 Sun Sep 29 13:33:47 PDT 2013 root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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