This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: XWin causes Windows apps to hang(?)


Alexander Gottwald wrote:

> 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. I had XWin running with this change and it
produced logmessages (from memory):

OpenClipboard () failed: 0000000
EmptyClipboard () failed: $NUMBER (Clipboard not open error)

bye
   ago
NP: New Concept - Station Man
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]