Bug 25642 - Invalid format specifier in a sketch causes sketch environment to crash
Summary: Invalid format specifier in a sketch causes sketch environment to crash
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Sketches ()
Version: 5.7
Hardware: PC Mac OS
: --- normal
Target Milestone: 5.9
Assignee: Sketches Dev List
URL:
Depends on:
Blocks:
 
Reported: 2014-12-29 14:57 UTC by scott
Modified: 2015-03-02 12:59 UTC (History)
3 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 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 scott 2014-12-29 14:57:04 UTC
Using an invalid format specifier in a binding causes a crash.

Repro:

Try as follows - should be {0:D} of course, but using the wrong syntax causes the sketch environment to crash. This is understandable, but correcting the error in code doesn't cause the sketch environment to restart.  You have to close the sketch and reopen it.
 
            dateLabel.SetBinding(Label.TextProperty,new Binding("Item2",BindingMode.OneWay, null, null, "{0D}"));
Comment 1 Sandy Armstrong [MSFT] 2015-02-25 12:31:50 UTC
Fixing the crash may not be possible safely, but our next release will ensure that agent apps restart as necessary. Thanks for catching this!
Comment 2 Sandy Armstrong [MSFT] 2015-02-27 11:40:09 UTC
Fixed in XS 5.8.
Comment 3 Sandy Armstrong [MSFT] 2015-03-02 11:59:33 UTC
Fixed in 5.9, rather.