[Mono-bugs] [Bug 414446] [PATCH] [WIN32] ClipboardStore (Clipboard.SetText etc) causes memory corruption
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Aug 11 07:33:51 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=414446
User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=414446#c8
--- Comment #8 from Andy Hume <andyhume32 at yahoo.co.uk> 2008-08-11 05:33:50 MDT ---
Created an attachment (id=232691)
--> (https://bugzilla.novell.com/attachment.cgi?id=232691)
Repro app -- ClipboardSetLoop.cs
Compile *without* /t:winexe so that it stays attached to the console. Run it.
One time in ten at least it will crash with:
[[
D:\>mono ClipboardSetLoop.exe
Stacktrace:
]]
Or, if run in a debugger or with Windows' (full) pageheap diagnostics enabled
on mono.exe it will fail everytime. For the latter like:
[[
D:\>mono ClipboardSetLoop.exe
Unhandled Exception: System.Runtime.InteropServices.ExternalException:
Win32SetClipboardData
at System.Windows.Forms.XplatUIWin32.ClipboardStore (IntPtr handle,
System.Object obj, Int32 type, System.Windows.Forms.ObjectToClipboard
converter) [0x00000]
at System.Windows.Forms.XplatUI.ClipboardStore (IntPtr handle, System.Object
obj, Int32 type, System.Windows.Forms.ObjectToClipboard converter) [0x00000]
at System.Windows.Forms.Clipboard.SetDataObjectImpl (System.Object data,
Boolean copy) [0x00000]
at System.Windows.Forms.Clipboard.SetDataObject (System.Object data, Boolean
copy, Int32 retryTimes, Int32 retryDelay) [0x00000]
]]
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list