Bug 13443 - Tertiary operator in case statement crashes c# compiler
Summary: Tertiary operator in case statement crashes c# compiler
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
: 14023 ()
Depends on:
Blocks:
 
Reported: 2013-07-24 15:46 UTC by Nic Wise
Modified: 2013-08-16 10:00 UTC (History)
2 users (show)

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

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 GitHub or Developer Community 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 Nic Wise 2013-07-24 15:46:21 UTC
This statement, when I use it in a Xam.iOS app, crashes the compiler

switch (ev.ButtonIndex)
{
  case 0:
    (Invoice.Status == InvoiceStatus.Draft ? MarkAsSent() : MarkAsDraft());
    break;
}

if I put the same tertiary statement outside of a case, it throws a (valid) error:

public class Foo
	{
		public string s = "";
		public void Die()
		{
			(s == "hello" ? MarkAsSent() : MarkAsDraft());
		}
		void MarkAsSent () {
		}
		void MarkAsDraft() {

		}
	}

Program.cs(4,4): Error CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement (CS0201) (JuhaTweet)

I'm on the alpha channel, so I think it's being compiled with Xam.iOS 6.4.0 and Mono 3.1.2

Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/3.1.2/bin/mcs /noconfig "/r:/Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll" -nostdlib "/out:/Users/nic/code/git/mobileagent/MALib/bin/Debug/MALib.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll" "/r:/Users/nic/code/git/mobileagent/lib/NewtonsoftJsonMonoTouch.dll" "/r:/Users/nic/code/git/GitHub/RestSharp/RestSharp.MonoTouch/bin/iPhoneSimulator/Debug/RestSharp.MonoTouch.dll" "/r:/Users/nic/code/git/GitHub/DropNet/DropNet.MonoTouch/bin/Debug/DropNet.MonoTouch.dll" "/r:/Users/nic/code/git/GitHub/FreeAgent/FreeAgent.MonoTouch/bin/Debug/FreeAgent.MonoTouch.dll" "/r:/Users/nic/code/git/mobileagent/monotouch.dialog/MonoTouch.Dialog/bin/iPhoneSimulator/Debug/MonoTouch.Dialog.dll" "/r:/Users/nic/code/git/mobileagent/mobileagent/Components/btprogresshud-1.5/lib/ios/BTProgressHUD.dll" "/r:/Users/nic/code/git/mobileagent/mobileagent/Components/flyoutnavigation-1.1/lib/ios/FlyoutNavigation.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG;__MOBILE__;__IOS__"  /t:library "/Users/nic/code/git/mobileagent/MALib/StockImages.cs" "/Users/nic/code/git/mobileagent/MALib/AppLauncher.cs" "/Users/nic/code/git/mobileagent/MALib/elements/BTImagePickerElement.cs" "/Users/nic/code/git/mobileagent/MALib/elements/Elements.cs" "/Users/nic/code/git/mobileagent/MALib/QuickTimer.cs" "/Users/nic/code/git/mobileagent/MALib/elements/BTAuthenticationStatusElement.cs" "/Users/nic/code/git/mobileagent/MALib/elements/BTBankTransactionLineElement.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddBillDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddCarDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddExpenseDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddMileageDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddOdoDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddReceiptDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddTimeslipDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddTimeslipProjectListDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AuthenticationWebViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/BankingDetailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/BaseDetailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/BaseDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/elements/BTBackgroundImageSection.cs" "/Users/nic/code/git/mobileagent/MALib/elements/BTMultilineEntryElement.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/BaseSyncProgress.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/BTProgressHudSyncProgress.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/ContactDetailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/ContactsDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/ContactSync.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/CurrencySelectorDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/DataLoader.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/DataSource.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/DropBoxService.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/EditContactDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/EditProjectDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/FreeAgentDataSource.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/HomeDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/elements/ImageAccessoraryElement.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InfoDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InvoiceDetailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InvoicesDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InvoiceTimelineDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/LoginDetailsDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/elements/MTDExtensions.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/PickImageViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/PinDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/PopupWebViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/ProjectDetailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/ProjectsDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Appearance/AppearenceManager.cs" "/Users/nic/code/git/mobileagent/MALib/Appearance/Chrome.cs" "/Users/nic/code/git/mobileagent/MALib/Syncing/FreeAgentService.cs" "/Users/nic/code/git/mobileagent/MALib/Appearance/ServiceConfig.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/SlidingViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/Appirator.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/CookieAwareWebClient.cs" "/Users/nic/code/git/mobileagent/MALib/Persistance/Enums.cs" "/Users/nic/code/git/mobileagent/MALib/Persistance/Credentials.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/ExtensionMethods.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/HttpUtility.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/ImageLibraryUtils.cs" "/Users/nic/code/git/mobileagent/MALib/Persistance/Models.cs" "/Users/nic/code/git/mobileagent/MALib/Persistance/SQLite.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/Reachability.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/Threading.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/UploadStatusSyncProgress.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/UploadStatusViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/UserDetailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/UsersDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/Util.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/VehicleDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/ViewDeckController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/ViewDeckControllerDelegate.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/WebViewController.cs" "/Users/nic/code/git/mobileagent/MALib/elements/LineChart.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InvoiceSendViaEmailDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/UnsentItemListViewController.cs" "/Users/nic/code/git/mobileagent/MALib/Utils/BTRemoteLogging.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/AddInvoiceDialogViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InvoiceLineEditViewController.cs" "/Users/nic/code/git/mobileagent/MALib/ViewControllers/InvoiceLineItemEditViewController.cs" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/00-wallet.png,__monotouch_content_icons_f00-wallet.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/00-wallet@2x.png,__monotouch_content_icons_f00-wallet@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/01-refresh.png,__monotouch_content_icons_f01-refresh.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/01-refresh@2x.png,__monotouch_content_icons_f01-refresh@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/07-arrow-north.png,__monotouch_content_icons_f07-arrow-north.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/07-arrow-north@2x.png,__monotouch_content_icons_f07-arrow-north@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/112-group.png,__monotouch_content_icons_f112-group.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/112-group@2x.png,__monotouch_content_icons_f112-group@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/119-piggy-bank.png,__monotouch_content_icons_f119-piggy-bank.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/119-piggy-bank@2x.png,__monotouch_content_icons_f119-piggy-bank@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/11-clock.png,__monotouch_content_icons_f11-clock.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/11-clock@2x.png,__monotouch_content_icons_f11-clock@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/172-pricetag.png,__monotouch_content_icons_f172-pricetag.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/172-pricetag@2x.png,__monotouch_content_icons_f172-pricetag@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/185-printer.png,__monotouch_content_icons_f185-printer.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/185-printer@2x.png,__monotouch_content_icons_f185-printer@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/192-credit-card.png,__monotouch_content_icons_f192-credit-card.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/192-credit-card@2x.png,__monotouch_content_icons_f192-credit-card@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/27-circle-north.png,__monotouch_content_icons_f27-circle-north.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/27-circle-north@2x.png,__monotouch_content_icons_f27-circle-north@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/36-toolbox.png,__monotouch_content_icons_f36-toolbox.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/36-toolbox@2x.png,__monotouch_content_icons_f36-toolbox@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/44-car.png,__monotouch_content_icons_f44-car.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/44-car@2x.png,__monotouch_content_icons_f44-car@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/44-shoebox.png,__monotouch_content_icons_f44-shoebox.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/44-shoebox@2x.png,__monotouch_content_icons_f44-shoebox@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/47-bicycle.png,__monotouch_content_icons_f47-bicycle.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/47-bicycle@2x.png,__monotouch_content_icons_f47-bicycle@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/47-fuel.png,__monotouch_content_icons_f47-fuel.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/47-fuel@2x.png,__monotouch_content_icons_f47-fuel@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/53-house.png,__monotouch_content_icons_f53-house.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/53-house@2x.png,__monotouch_content_icons_f53-house@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/59-info.png,__monotouch_content_icons_f59-info.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/59-info@2x.png,__monotouch_content_icons_f59-info@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/86-camera.png,__monotouch_content_icons_f86-camera.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/86-camera@2x.png,__monotouch_content_icons_f86-camera@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/footertearoff.png,__monotouch_content_icons_ffootertearoff.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/footertearoff@2x.png,__monotouch_content_icons_ffootertearoff@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/glyphicons_181_download_alt.png,__monotouch_content_icons_fglyphicons__181__download__alt.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/glyphicons_181_download_alt@2x.png,__monotouch_content_icons_fglyphicons__181__download__alt@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/headertearoff.png,__monotouch_content_icons_fheadertearoff.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/headertearoff@2x.png,__monotouch_content_icons_fheadertearoff@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_dollar.png,__monotouch_content_icons_ficon__dollar.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_hat.png,__monotouch_content_icons_ficon__hat.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_home.png,__monotouch_content_icons_ficon__home.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_shopping_heavy.png,__monotouch_content_icons_ficon__shopping__heavy.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_user.png,__monotouch_content_icons_ficon__user.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_users.png,__monotouch_content_icons_ficon__users.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/icon_wallet.png,__monotouch_content_icons_ficon__wallet.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/invoicebackground.png,__monotouch_content_icons_finvoicebackground.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/invoicebackground@2x.png,__monotouch_content_icons_finvoicebackground@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/maf-logo.png,__monotouch_content_icons_fmaf-logo.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/maf-logo@2x.png,__monotouch_content_icons_fmaf-logo@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/motorbike.png,__monotouch_content_icons_fmotorbike.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/motorbike@2x.png,__monotouch_content_icons_fmotorbike@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/newvehicle.png,__monotouch_content_icons_fnewvehicle.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/newvehicle@2x.png,__monotouch_content_icons_fnewvehicle@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/newvehicle-maf.png,__monotouch_content_icons_fnewvehicle-maf.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/newvehicle-maf@2x.png,__monotouch_content_icons_fnewvehicle-maf@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/noimage.png,__monotouch_content_icons_fnoimage.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/noimage@2x.png,__monotouch_content_icons_fnoimage@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/paypal.png,__monotouch_content_icons_fpaypal.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/paypal@2x.png,__monotouch_content_icons_fpaypal@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/receipt.png,__monotouch_content_icons_freceipt.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/receipt@2x.png,__monotouch_content_icons_freceipt@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/taphere.png,__monotouch_content_icons_ftaphere.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/taphere@2x.png,__monotouch_content_icons_ftaphere@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/mac-logo.png,__monotouch_content_icons_fmac-logo.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/162-receipt.png,__monotouch_content_icons_f162-receipt.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/162-receipt@2x.png,__monotouch_content_icons_f162-receipt@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/mac-logo@2x.png,__monotouch_content_icons_fmac-logo@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/navbar-header.png,__monotouch_content_chrome_fmobileagent_fnavbar-header.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/navbar-header@2x.png,__monotouch_content_chrome_fmobileagent_fnavbar-header@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/btn-back.png,__monotouch_content_chrome_fmobileagent_fbtn-back.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/btn-back@2x.png,__monotouch_content_chrome_fmobileagent_fbtn-back@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/btn-normal.png,__monotouch_content_chrome_fmobileagent_fbtn-normal.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/btn-normal@2x.png,__monotouch_content_chrome_fmobileagent_fbtn-normal@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/toolbar-background.png,__monotouch_content_chrome_fmobileagent_ftoolbar-background.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/mobileagent/toolbar-background@2x.png,__monotouch_content_chrome_fmobileagent_ftoolbar-background@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/maf/btn-back.png,__monotouch_content_chrome_fmaf_fbtn-back.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/maf/btn-back@2x.png,__monotouch_content_chrome_fmaf_fbtn-back@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/maf/btn-normal.png,__monotouch_content_chrome_fmaf_fbtn-normal.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/maf/btn-normal@2x.png,__monotouch_content_chrome_fmaf_fbtn-normal@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/maf/navbar-header.png,__monotouch_content_chrome_fmaf_fnavbar-header.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/maf/navbar-header@2x.png,__monotouch_content_chrome_fmaf_fnavbar-header@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_middle_active@2x.png,__monotouch_content_chrome_fcell__middle__active@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_full_active_plain.png,__monotouch_content_chrome_fcell__full__active__plain.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_full_active_plain@2x.png,__monotouch_content_chrome_fcell__full__active__plain@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_bottom_active.png,__monotouch_content_chrome_fcell__bottom__active.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_bottom.png,__monotouch_content_chrome_fcell__bottom.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_full_active.png,__monotouch_content_chrome_fcell__full__active.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_full.png,__monotouch_content_chrome_fcell__full.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_middle_active.png,__monotouch_content_chrome_fcell__middle__active.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_middle.png,__monotouch_content_chrome_fcell__middle.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_top_active.png,__monotouch_content_chrome_fcell__top__active.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_top.png,__monotouch_content_chrome_fcell__top.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_bottom_active@2x.png,__monotouch_content_chrome_fcell__bottom__active@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_bottom@2x.png,__monotouch_content_chrome_fcell__bottom@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_middle@2x.png,__monotouch_content_chrome_fcell__middle@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_top_active@2x.png,__monotouch_content_chrome_fcell__top__active@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_top@2x.png,__monotouch_content_chrome_fcell__top@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_full_active@2x.png,__monotouch_content_chrome_fcell__full__active@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_full@2x.png,__monotouch_content_chrome_fcell__full@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/xbutton.png,__monotouch_content_icons_fxbutton.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/xbutton@2x.png,__monotouch_content_icons_fxbutton@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/checkbox_checked.png,__monotouch_content_icons_fcheckbox__checked.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/checkbox_checked@2x.png,__monotouch_content_icons_fcheckbox__checked@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/ma-logo.png,__monotouch_content_icons_fma-logo.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/ma-logo@2x.png,__monotouch_content_icons_fma-logo@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/tablebackground.png,__monotouch_content_icons_ftablebackground.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/tablebackground@2x.png,__monotouch_content_icons_ftablebackground@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/uisearchbar_background.png,__monotouch_content_icons_fuisearchbar__background.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/uisearchbar_background@2x.png,__monotouch_content_icons_fuisearchbar__background@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/recordssecton_header.png,__monotouch_content_chrome_frecordssecton__header.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/recordssecton_header@2x.png,__monotouch_content_chrome_frecordssecton__header@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_bottom_nodiv.png,__monotouch_content_chrome_fcell__bottom__nodiv.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_bottom_nodiv@2x.png,__monotouch_content_chrome_fcell__bottom__nodiv@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_middle_nodiv.png,__monotouch_content_chrome_fcell__middle__nodiv.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_middle_nodiv@2x.png,__monotouch_content_chrome_fcell__middle__nodiv@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_top_nodiv.png,__monotouch_content_chrome_fcell__top__nodiv.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/cell_top_nodiv@2x.png,__monotouch_content_chrome_fcell__top__nodiv@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/tabbar_background.png,__monotouch_content_chrome_ftabbar__background.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/tabbar_background@2x.png,__monotouch_content_chrome_ftabbar__background@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/tabbar_selected.png,__monotouch_content_chrome_ftabbar__selected.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/chrome/tabbar_selected@2x.png,__monotouch_content_chrome_ftabbar__selected@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/ledger_money.png,__monotouch_content_icons_fledger__money.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/ledger_money@2x.png,__monotouch_content_icons_fledger__money@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/bag_shopping.png,__monotouch_content_icons_fnew_fbag__shopping.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/bag_shopping@2x.png,__monotouch_content_icons_fnew_fbag__shopping@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/bicycle.png,__monotouch_content_icons_fnew_fbicycle.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/bicycle@2x.png,__monotouch_content_icons_fnew_fbicycle@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/bill.png,__monotouch_content_icons_fnew_fbill.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/bill@2x.png,__monotouch_content_icons_fnew_fbill@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/car.png,__monotouch_content_icons_fnew_fcar.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/car@2x.png,__monotouch_content_icons_fnew_fcar@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/contact.png,__monotouch_content_icons_fnew_fcontact.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/contact@2x.png,__monotouch_content_icons_fnew_fcontact@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/credit_card.png,__monotouch_content_icons_fnew_fcredit__card.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/credit_card@2x.png,__monotouch_content_icons_fnew_fcredit__card@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/document.png,__monotouch_content_icons_fnew_fdocument.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/document@2x.png,__monotouch_content_icons_fnew_fdocument@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/expense.png,__monotouch_content_icons_fnew_fexpense.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/expense@2x.png,__monotouch_content_icons_fnew_fexpense@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/home.png,__monotouch_content_icons_fnew_fhome.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/home@2x.png,__monotouch_content_icons_fnew_fhome@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/mileage.png,__monotouch_content_icons_fnew_fmileage.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/mileage@2x.png,__monotouch_content_icons_fnew_fmileage@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/money_bag.png,__monotouch_content_icons_fnew_fmoney__bag.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/money_bag@2x.png,__monotouch_content_icons_fnew_fmoney__bag@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/motorcycle.png,__monotouch_content_icons_fnew_fmotorcycle.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/motorcycle@2x.png,__monotouch_content_icons_fnew_fmotorcycle@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/projects.png,__monotouch_content_icons_fnew_fprojects.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/projects@2x.png,__monotouch_content_icons_fnew_fprojects@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/receipt.png,__monotouch_content_icons_fnew_freceipt.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/receipt@2x.png,__monotouch_content_icons_fnew_freceipt@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/receipts.png,__monotouch_content_icons_fnew_freceipts.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/receipts@2x.png,__monotouch_content_icons_fnew_freceipts@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/sync.png,__monotouch_content_icons_fnew_fsync.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/sync@2x.png,__monotouch_content_icons_fnew_fsync@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/teddy_bear.png,__monotouch_content_icons_fnew_fteddy__bear.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/teddy_bear@2x.png,__monotouch_content_icons_fnew_fteddy__bear@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/timeslip.png,__monotouch_content_icons_fnew_ftimeslip.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/timeslip@2x.png,__monotouch_content_icons_fnew_ftimeslip@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/paypal.png,__monotouch_content_icons_fnew_fpaypal.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/paypal@2x.png,__monotouch_content_icons_fnew_fpaypal@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/mileage_black.png,__monotouch_content_icons_fnew_fmileage__black.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/clock_black.png,__monotouch_content_icons_fnew_fclock__black.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/clock_black@2x.png,__monotouch_content_icons_fnew_fclock__black@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/unsent_items.png,__monotouch_content_icons_fnew_funsent__items.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/unsent_items@2x.png,__monotouch_content_icons_fnew_funsent__items@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/upload.png,__monotouch_content_icons_fnew_fupload.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/upload@2x.png,__monotouch_content_icons_fnew_fupload@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/new/mileage_black@2x.png,__monotouch_content_icons_fnew_fmileage__black@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/bear-white.png,__monotouch_content_icons_fbear-white.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/icons/bear-white@2x.png,__monotouch_content_icons_fbear-white@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/error.png,__monotouch_content_error.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/error@2x.png,__monotouch_content_error@2x.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/success.png,__monotouch_content_success.png" "/res:/Users/nic/code/git/mobileagent/MALib/obj/Debug/resources/success@2x.png,__monotouch_content_success@2x.png" 
Compilation failed: 1 error(s), 24 warnings




easy to work around tho.
Comment 1 Marek Safar 2013-07-26 07:26:37 UTC
I cannot reproduce the issue with mono 3.2. Can you post reproducible sample or at least the crash exception ?
Comment 2 Nic Wise 2013-07-26 12:56:35 UTC
I can :)

here's a gist with a basic class

https://gist.github.com/nicwise/6090436

It appears to be only if it's inside a Task.Factory.StartNew block - just a anonymous method on it's own isn't enough.

No stacktrace tho - how do I make XamStudio generate one?
Comment 3 Marek Safar 2013-07-26 17:55:36 UTC
Fixed in master and 3-2 branch
Comment 4 Marek Safar 2013-08-16 10:00:15 UTC
*** Bug 14023 has been marked as a duplicate of this bug. ***