madewokherd / wine-mono

Other
294 stars 39 forks source link

Clipboard.GetText() won't work #118

Closed IncubusRK closed 2 years ago

IncubusRK commented 3 years ago

WinForm application can't get text from clipboard

simple example:

Clipboard.SetText("some text");
r=Clipboard.GetText();

r is empty string

sample app https://dropmefiles.com/7eX5q

IncubusRK commented 2 years ago

In addition, I note that after call Clipboard.SetText("some text") the insertion text from clipboard works fine through the hotkeys or the context menu. Some thing wrong in Clipboard.GetText()

Native test app that use SetClipboardData and GetClipboardData work correct

madewokherd commented 2 years ago

Confirmed.

OleGetClipboard trace claims it's returning an object, but Clipboard.GetDataObject is returning null. Seems like a marshaling issue.