Bug 1624 - MonoDevelop crash when instantiating MailAddress in code and building
Summary: MonoDevelop crash when instantiating MailAddress in code and building
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 2.8
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-10-21 04:19 UTC by Christian Baune
Modified: 2011-11-15 15:45 UTC (History)
2 users (show)

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


Attachments
Project that will fail. (3.86 KB, application/x-zip-compressed)
2011-10-21 04:19 UTC, Christian Baune
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 Christian Baune 2011-10-21 04:19:55 UTC
Created attachment 744 [details]
Project that will fail.

Steps :
1) Create an empty ASP(C#) application
2) Add "System.Net" in references
3) Create a class
4) Add "using System.Net.Mail;"
5) Add this member to the class :
 public static void Main(string[] args){
   MailAddress ma=new MailAddress("crash@ide.com","IDE crasher");
 }
6) Hit build

MonoDevelop will crash !

The log says :
ERREUR[2011-10-21 10:17:43Z]: System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : value
   à System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureParameter)
   à System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   à System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
   à MonoDevelop.Core.LoggingService..cctor()
Comment 1 Alan McGovern 2011-11-15 15:44:30 UTC
This code is actually wrapped in a try/catch so it cannot crash monodevelop. Did you just see this getting printed in the terminal or did monodevelop itself actually crash? If MonoDevelop did actually crash, then this is something which has been fixed since 2.8 and so I'd recommend you use 2.8.2 as we definitely have the try/catch there.
Comment 2 Alan McGovern 2011-11-15 15:45:15 UTC
I meant to add: If monodevelop is actually crashing, then it's more than likely something else so we'd need to get a copy of your MonoDevelop.log file