This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: XWin causes Windows apps to hang(?)
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- Cc: cygwin-xfree at cygwin dot com
- Date: Tue, 24 Feb 2004 11:51:36 +0100 (MET)
- Subject: Re: XWin causes Windows apps to hang(?)
- References: <Pine.LNX.4.55.0402221739260.17360@lupus.ago.vpn>
- Reply-to: cygwin-xfree at cygwin dot com
On Sun, 22 Feb 2004, Alexander Gottwald wrote:
> winProcSetSelectionOwner - OpenClipboard () failed: 00000000
> winProcSetSelectionOwner - OpenClipboard () failed: 00000000
>
> 0 is ERROR_SUCCESS which means "The operation completed successfully"
> I guess the clipboard was opened successfully but returned a wrong
> error condition. After bailing out we leave the clipboard in an open
> state and other programs can not access it anymore.
>
> I guess this is worth a try:
>
> from winclipboardwrappers.c:461
>
> /* Access the Windows clipboard */
> if (!OpenClipboard (g_hwndClipboard))
> {
> DWORD errorcode = GetLastError();
> ErrorF ("winProcSetSelectionOwner - OpenClipboard () failed: %08x\n",
> (int) errorcode);
> if (errorcode != ERROR_SUCCESS)
> goto winProcSetSelectionOwner_Done;
> }
This was a deadend too. The call to EmptyClipboard now returned an error
stating the clipboard was not open.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723
Chemnitzer Linux-Tag 2004 - 6. und 7. März 2004
http://www.tu-chemnitz.de/linux/tag