[Bug 50042] New: Wine fails to execute .NET C# "ShowDialog()"
WineHQ Bugzilla
wine-bugs at winehq.org
Thu Oct 22 15:06:46 CDT 2020
https://bugs.winehq.org/show_bug.cgi?id=50042
Bug ID: 50042
Summary: Wine fails to execute .NET C# "ShowDialog()"
Product: Wine
Version: unspecified
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs at winehq.org
Reporter: forinih564 at nic58.com
Distribution: ---
Created attachment 68490
--> https://bugs.winehq.org/attachment.cgi?id=68490
The program
trying to run the C# lines
SaveFileDialog savefiledialg = new SaveFileDialog();
savefiledialg.ShowDialog();
or
OpenFileDialog openFileDialog1 = new OpenFileDialog();
openFileDialog1.ShowDialog()
causes the application to crash
the source code for the attached program is
private void button1_Click(object sender, EventArgs e)
{
string path = "";
SaveFileDialog savefiledialg = new SaveFileDialog();
label1.Text = "Save";
savefiledialg.ShowDialog();
label1.Text = "Open";
OpenFileDialog openFileDialog1 = new OpenFileDialog();
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
path = openFileDialog1.FileName;
}
else
{
return;
}
}
compiled using visual studio 2012 and for .NET Framework 3.5
the "details" of the crash message is :
See the end of this message for details on invoking \njust-in-time (JIT)
debugging instead of this dialog box.\n\n************** Exception Text
**************\nSystem.ArgumentException: Value does not fall within the
expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (System.Int32
errorCode) [0x0000a] in <7713cb95b33244ed9608bf0b23fbdce9>:0
at (wrapper cominterop)
System.Windows.Forms.FileDialogNative+IFileDialog.SetFileTypes(uint,System.Windows.Forms.FileDialogNative/COMDLG_FILTERSPEC[])
at (wrapper cominterop-invoke)
System.Windows.Forms.FileDialogNative+IFileDialog.SetFileTypes(uint,System.Windows.Forms.FileDialogNative/COMDLG_FILTERSPEC[])
at System.Windows.Forms.FileDialog.SetFileTypes
(System.Windows.Forms.FileDialogNative+IFileDialog dialog) [0x00008] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.FileDialog.OnBeforeVistaDialog
(System.Windows.Forms.FileDialogNative+IFileDialog dialog) [0x0006e] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.FileDialog.RunDialogVista (System.IntPtr hWndOwner)
[0x00008] in <4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.FileDialog.RunDialog (System.IntPtr hWndOwner)
[0x00038] in <4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.CommonDialog.ShowDialog
(System.Windows.Forms.IWin32Window owner) [0x000f0] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.CommonDialog.ShowDialog () [0x00000] in
<4b7d326f792d4378bd436300c6961411>:0
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.CommonDialog.ShowDialog()
at WindowsFormsApplication15.Form1.button1_Click (System.Object sender,
System.EventArgs e) [0x0001e] in <fab84d9a41fb43a5a0d481a535d563b1>:0
at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0001f] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00037] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Button.OnMouseUp (System.Windows.Forms.MouseEventArgs
mevent) [0x0009a] in <4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Control.WmMouseUp (System.Windows.Forms.Message& m,
System.Windows.Forms.MouseButtons button, System.Int32 clicks) [0x001c3] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x005a0] in <4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m)
[0x0011f] in <4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m)
[0x00056] in <4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage
(System.Windows.Forms.Message& m) [0x00001] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x000b3] in
<4b7d326f792d4378bd436300c6961411>:0
at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message&
m) [0x00025] in <4b7d326f792d4378bd436300c6961411>:0
\n************** Loaded Assemblies **************\nmscorlib\n Assembly
Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase:
file:///C:/windows/mono/mono-2.0/lib/mono/4.5/mscorlib.dll\n----------------------------------------\nWindowsFormsApplication15\n
Assembly Version: 1.0.0.0\n Win32 Version: 1.0.0.0\n CodeBase:
file:///Z:/home/test/Downloads/WindowsFormsApplication3.exe\n----------------------------------------\nSystem.Windows.Forms\n
Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase:
file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\n----------------------------------------\nSystem\n
Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase:
file:///C:/windows/mono/mono-2.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll\n----------------------------------------\nSystem.Drawing\n
Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase:
file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\n----------------------------------------\nAccessibility\n
Assembly Version: 4.0.0.0\n Win32 Version: \n CodeBase:
file:///C:/windows/mono/mono-2.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\n----------------------------------------\nSystem.Configuration\n
Assembly Version: 4.0.0.0\n Win32 Version: 4.6.57.0\n CodeBase:
file:///C:/windows/mono/mono-2.0/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\n----------------------------------------\n\n**************
JIT Debugging **************\n
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list