[Mono-winforms-list] Error in SaveFileDialog using mono-1.1.5-r1

Shi Jin jinzishuai@yahoo.com
Sun, 3 Apr 2005 08:54:15 -0700 (PDT)


Hi there,

I have written a C# code under windows .net  and I am
able to compile it without any problem using
mono-1.1.5-r1 under my gentoo linux. But when I ran
it, I have the error message below. It is basically
the problem of SaveFileDialog form, if I remove it
from my code then everything is fine and I see the
same winform as under windows. 
Please advise.
Thanks a lot.
************ Error Message *****************
seki@jinshi contest $ mono FractalClientWin32.exe
Mono System.Windows.Forms Assembly [Revision: 41731;
built: 2005/2/15 5:56:12]
Keyboard: United States keyboard layout (phantom key
version)
Info: Using render cleanup parameters
8/20/23/24/25/26.
Disposing window 1E00003 (whole: 1E00002)
Disposing window 1E00007 (whole: 1E00006)
Disposing window 1E0000B (whole: 1E0000A)

Unhandled Exception: System.InvalidCastException:
Cannot cast from source type to destination type.
in <0x00141>
System.Windows.Forms.FileDialog+FileDialogPanel+FileListView:.ctor
(System.Windows.Forms.FileDialogPanel fileDialogPanel)
in (wrapper remoting-invoke-with-check)
FileListView:.ctor
(System.Windows.Forms.FileDialog/FileDialogPanel)
in <0x00276>
System.Windows.Forms.FileDialog+FileDialogPanel:.ctor
(System.Windows.Forms.FileDialog fileDialog)
in (wrapper remoting-invoke-with-check)
FileDialogPanel:.ctor
(System.Windows.Forms.FileDialog)
in <0x000a6> System.Windows.Forms.SaveFileDialog:.ctor
()
in (wrapper remoting-invoke-with-check)
System.Windows.Forms.SaveFileDialog:.ctor ()
in <0x0072e>
FractalClientWin32.GUI:InitializeComponent ()
in (wrapper remoting-invoke-with-check)
FractalClientWin32.GUI:InitializeComponent ()
in <0x00023> FractalClientWin32.GUI:.ctor ()
in (wrapper remoting-invoke-with-check)
FractalClientWin32.GUI:.ctor ()
in <0x0001a> FractalClientWin32.GUI:Main ()



		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs