Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Here's a simple code example
public MainViewController() : base ("MainViewController")
_addressBook = new ABAddressBook();
_addressBook.ExternalChange += HandleExternalChange;
void HandleExternalChange(object sender, ExternalChangeEventArgs e)
for (int i = 0; i < e.Info.Count; i++)
var key = e.Info.Keys [i];
var value = e.Info [key];
Logger.Log("Address book changed");
e.Info is supposed to be a NSDictionnary and contain informations about the changed entries in the address book.
But in debugger, the type of e.Info is object and is null.
To reproduce the bug, launch the app, then launch the Contact app, change something in one contact and return in the debugged app. The event will be raised and nothing is in e.Info.
According to Apple's documentation 'info' is always null: http://developer.apple.com/library/ios/#DOCUMENTATION/AddressBook/Reference/ABAddressBookRef_iPhoneOS/Reference/reference.html#//apple_ref/doc/c_ref/ABExternalChangeCallback
Our own documentation also says that the 'info' parameter can be null: "A MonoTouch.Foundation.NSDictionary containing additional information about the ABAddressBook.ExternalChange event. This may be null." (from: http://docs.go-mono.com/?link=P%3aMonoTouch.AddressBook.ExternalChangeEventArgs.Info).