Bug 2728 - Calling ABPerson.SetUrls() crashes the application
Summary: Calling ABPerson.SetUrls() crashes the application
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2012-01-03 19:06 UTC by Martin Wiboe
Modified: 2012-01-11 09:34 UTC (History)
3 users (show)

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


Attachments
Crash report (23.53 KB, application/octet-stream)
2012-01-03 19:06 UTC, Martin Wiboe
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 Martin Wiboe 2012-01-03 19:06:03 UTC
Created attachment 1122 [details]
Crash report

It is possible to add multiple URLs to regular iOS contacts using the built-in Contacts app. For contacts that are in a sync relationship (ex. with GMail) it is only possible to set the "homepage" URL.

Calling ABPerson.SetUrls(urls) with more than one element in urls works as expected for regular contacts, but will terminate the app for sync'ed contacts. It is not possible to catch this error as a managed exception.
Comment 1 Sebastien Pouliot 2012-01-11 07:55:28 UTC
I can duplicate the issue.
Comment 2 Sebastien Pouliot 2012-01-11 08:12:26 UTC
The crash occurs when creating an exception from the error code received from the native API.
Comment 3 Sebastien Pouliot 2012-01-11 09:34:29 UTC
Fixed. This will be part of the next 5.0.x and 5.1.x (beta) releases.