The following scenario is simulated to reproduce the crash:
- Enable Beta: unicode UTF-8 for world wide language support (To enable Start=> Region & Language settings => Related settings -> Additional date, time & regional settings => Region -> Change date, time or number formats => select Administrative tab => Click on Change System Locale.
- Check Beta: unicode UTF-8 for world wide language support checkbox
- Restart the system
In Windows forms Application => Add a form, RichTextBox, Button and a label OnButtonClick => add below lines
richTextBox1.SelectAll(); richTextBox1.Rtf = richTextBox1.SelectedRtf; //Leads Crash System.ArgumentException: File format is not valid. label1.Text = "RichTextBox1.Rtf = " + richTextBox1.Rtf;
If we UnCheck Beta: unicode UTF-8 for world wide language support, and restart the system there was no issue.
Issue is observed with windows version 1803
Any help on this use case is appreciated