Bug 34789 - Current implementation ignores the terminate parameter of TraceWriter.WriteTrace method, causing the app close even if the value is false.
Summary: Current implementation ignores the terminate parameter of TraceWriter.WriteTr...
Status: RESOLVED FIXED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Production (addons.xamarin.com)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL:
Depends on:
Blocks:
 
Reported: 2015-10-12 18:03 UTC by Nuno
Modified: 2016-01-12 15:47 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample Project (37.94 KB, application/zip)
2015-10-12 18:03 UTC, Nuno
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Nuno 2015-10-12 18:03:46 UTC
Created attachment 13296 [details]
Sample Project

The HockeyApp 3.5.0 bind available at Xamarin Component Store has a bug in the TraceWriter.WriteTrace method.
The last parameter, terminate, that defines if the app will close after register the exception is being ignored. Even if pass FALSE the App will be forcibly closed.

I think this is the same code of T.J. Purtell, he has the same issue.
https://github.com/tpurtell/AndroidHockeyApp/pull/8
Comment 1 wessel.kroos 2015-11-26 04:22:33 UTC
A workaround is to convert your exception a java Throwable object and call the SaveException method.


Example:
[code]var throwable = Java.Lang.Throwable.FromException(ex);
HockeyApp.ExceptionHandler.SaveException(throwable, null);[/code]
Comment 2 Jon Dick 2016-01-12 15:47:29 UTC
This is fixed in master and will be included in the next release.  Currently waiting on 3.7.0 to go stable from HockeyApp and the component will be updated with the fix at that time.