https://bugzilla.novell.com/show_bug.cgi?id=357649

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=357649#c2





--- Comment #2 from Yanko Hernandez <[EMAIL PROTECTED]>  2008-01-31 11:36:46 
MST ---
several things I hadn't mentioned before:

* when this method is called, Configuration.MailDir == null
* the binary was compiled with VS2008 using "Release" mode (Net 2.0 project).

I moved out the declaration only ("Process myProcess;"). It did not work
Later I moved out the construction of myProcess too, just like this:
------------------------
static public void SendMail(string users, string TextMessage, string
HTMLMessage)
{
    StreamWriter sw;
    Process myProcess = new Process();
    if (string.IsNullOrEmpty(Configuration.MailDir))
    {
        myProcess.StartInfo.FileName = "/usr/sbin/sendmail";
..
------------------------
Compiled it with VS2008 "Debug" mode and now it runs to completion using mono
without the exception being generated.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to