[Mono-bugs] [Bug 357649] GC Error: The object was used after being disposed.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 31 13:36:47 EST 2008


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

User yhdezalvarez at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=357649#c2





--- Comment #2 from Yanko Hernandez <yhdezalvarez at gmail.com>  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.


More information about the mono-bugs mailing list