[Mono-bugs] [Bug 370736] SaveFileDialog, restore directory

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 11 18:14:56 EDT 2008


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

User twiest at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=370736#c4


Thomas Wiest <twiest at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                                        |NEEDINFO
      Info Provider|                                                |surfzoid2002 at yahoo.fr




--- Comment #4 from Thomas Wiest <twiest at novell.com>  2008-06-11 16:14:56 MDT ---
Hey Eric,
   Thanks for the test case, however it's better if you include the whole test
case file, not just snippets.

I formulated a test case based on your code above, but it hangs on the first
OF.ShowDialog() in Visual C# Express 2008.

Would you mind attaching a full test case that works in VS?

Thanks! :)



Here's the test case I created from your code above (again, this hangs):
using System;
using System.Diagnostics;
using System.Windows.Forms;

namespace Bug370736
{
    public class Bug370736
    {
        [STAThread]
        public static void Main()
        {
            try
            {

                SaveFileDialog SF = new SaveFileDialog();
                SF.RestoreDirectory = true;
                SF.ShowDialog();

                OpenFileDialog OF = new OpenFileDialog();
                OF.RestoreDirectory = true;                

                OF.ShowDialog();
                SF.ShowDialog();
                OF.ShowDialog();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + Environment.NewLine +
                                ex.StackTrace, "Error", 
                                MessageBoxButtons.OK, MessageBoxIcon.Error);

                Debug.WriteLine(DateTime.Now + ": " + ex.Message +
                                Environment.NewLine + ex.StackTrace);
            }
        }
    }
}


-- 
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