Re: XWin causes Windows apps to hang(?)

2004-02-25 Thread Alexander Gottwald
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: 000
EmptyClipboard () failed: $NUMBER (Clipboard not open error)

bye
   ago
NP: New Concept - Station Man
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: XWin causes Windows apps to hang(?)

2004-02-24 Thread Alexander Gottwald
On Sun, 22 Feb 2004, Alexander Gottwald wrote:

 winProcSetSelectionOwner - OpenClipboard () failed: 
 winProcSetSelectionOwner - OpenClipboard () failed: 
 
 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
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723
 Chemnitzer Linux-Tag 2004 - 6. und 7. März 2004
 http://www.tu-chemnitz.de/linux/tag


Re: XWin causes Windows apps to hang(?)

2004-02-22 Thread Alexander Gottwald
Harold L Hunt II wrote:

 Yes, the OpenClipboard failure is probably causing your crash.


winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 

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;
}

bye
ago

NP: Front Line Assembly - Maniacal
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


Re: XWin causes Windows apps to hang(?)

2004-02-20 Thread Ed Avis
Harold L Hunt II [EMAIL PROTECTED] writes:

[Windows app hangs when pasting to it from X]

Yes, the OpenClipboard failure is probably causing your crash.  Try
editing your startxwin.bat and removing the -clipboard parameter
being passed to XWin.exe.

If I do that then I can run a separate xwinclip.exe.  If xwinclip gets
into a wedged state then it can be killed and restarted.

There is likely a bug in XWin.exe's clipboard support that will need
to be fixed.

Let me know if you would like me to do something to help reproduce or
track down this bug.

-- 
Ed Avis [EMAIL PROTECTED]



Re: XWin causes Windows apps to hang(?)

2004-02-19 Thread Ed Avis
Ed Avis [EMAIL PROTECTED] writes:

- I copied a URL from an email message in Evolution
- When I paste into a Windows app, that Windows app is stuck. This
happened w/iexplorer and explorer.exe.

It appears as if the Windows app is stuck indefinitely waiting for
the pastable from XWin.

I am seeing this too.  I tried pasting into several different
applications, in all cases it caused the app to hang and I had to
kill it using the task manager.

Here is the XWin.log for an X session that does this.  The server is
running happily but it will crash any Windows app I try to paste into
from the X selection.  I wonder if it might be the line

winProcSetSelectionOwner - OpenClipboard () failed: 

The log follows.

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1280 dwHeight: 1024
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winAdjustForAutoHide - Original WorkArea: 0 0 996 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 996 1280
winCreateBoundingWindowWindowed - WindowClient w 1274 h 971 r 1274 l 0 b 971 t 0
winCreateBoundingWindowWindowed -  Returning
winCreatePrimarySurfaceShadowDDNL - Creating primary surface
winCreatePrimarySurfaceShadowDDNL - Created primary surface
winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
winAllocateFBShadowDDNL - lPitch: 5096
winAllocateFBShadowDDNL - Created shadow pitch: 5096
winAllocateFBShadowDDNL - Created shadow stride: 1274
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared 
memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809) 
(--) Using preset keyboard for English (United Kingdom) (809), type 4
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = xfree86 Model = pc105 Layout = gb Variant = (null) Options = (null)
winPointerWarpCursor - Discarding first warp: 637 485
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary 
surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: 

Re: XWin causes Windows apps to hang(?)

2004-02-19 Thread Harold L Hunt II
Ed,

Yes, the OpenClipboard failure is probably causing your crash.  Try 
editing your startxwin.bat and removing the -clipboard parameter being 
passed to XWin.exe.  There is likely a bug in XWin.exe's clipboard 
support that will need to be fixed.

Harold

Ed Avis wrote:

Ed Avis [EMAIL PROTECTED] writes:


- I copied a URL from an email message in Evolution
- When I paste into a Windows app, that Windows app is stuck. This
happened w/iexplorer and explorer.exe.
It appears as if the Windows app is stuck indefinitely waiting for
the pastable from XWin.
I am seeing this too.  I tried pasting into several different
applications, in all cases it caused the app to hang and I had to
kill it using the task manager.


Here is the XWin.log for an X session that does this.  The server is
running happily but it will crash any Windows app I try to paste into
from the X selection.  I wonder if it might be the line
winProcSetSelectionOwner - OpenClipboard () failed: 

The log follows.

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1280 h 1024
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1280 dwHeight: 1024
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1280 h: 1024
winCreateBoundingWindowWindowed - Current w: 1280 h: 1024
winAdjustForAutoHide - Original WorkArea: 0 0 996 1280
winAdjustForAutoHide - Adjusted WorkArea: 0 0 996 1280
winCreateBoundingWindowWindowed - WindowClient w 1274 h 971 r 1274 l 0 b 971 t 0
winCreateBoundingWindowWindowed -  Returning
winCreatePrimarySurfaceShadowDDNL - Creating primary surface
winCreatePrimarySurfaceShadowDDNL - Created primary surface
winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
winAllocateFBShadowDDNL - lPitch: 5096
winAllocateFBShadowDDNL - Created shadow pitch: 5096
winAllocateFBShadowDDNL - Created shadow stride: 1274
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowDDNL - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
winFinishScreenInitFB - returning
winScreenInit - returning
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
(--) Setting autorepeat to delay=250, rate=31
(--) winConfigKeyboard - Layout: 0809 (0809) 
(--) Using preset keyboard for English (United Kingdom) (809), type 4
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = xfree86 Model = pc105 Layout = gb Variant = (null) Options = (null)
winPointerWarpCursor - Discarding first warp: 637 485
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1
winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Restore returned: winBltExposedRegionsShadowDDNL - IDirectDrawSurface4_Blt reported that the primary surface was lost, trying to restore, retry: 1

XWin causes Windows apps to hang(?)

2004-01-24 Thread Øyvind Harboe
This was with -42.

- I copied a URL from an email message in Evolution
- When I paste into a Windows app, that Windows app is stuck. This
happened w/iexplorer and explorer.exe.

It appears as if the Windows app is stuck indefinitely waiting for the
pastable from XWin.





Øyvind

ddxProcessArgument - Initializing default screens
winInitializeDefaultScreens - w 1600 h 1200
winInitializeDefaultScreens - Returning
OsVendorInit - Creating bogus screen 0
(EE) Unable to locate/open config file
InitOutput - Error reading config file
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - Allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 001f
InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
winScreenInit - dwWidth: 1600 dwHeight: 1200
winSetEngine - Multi Window = ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winCreateBoundingWindowWindowed - User w: 1600 h: 1200
winCreateBoundingWindowWindowed - Current w: 1600 h: 1200
winGetWorkArea - Original WorkArea: 0 0 1166 1600
winGetWorkArea - Virtual screen is 2880 x 1200
winGetWorkArea - Virtual screen origin is 0, 0
winGetWorkArea - Primary screen is 1600 x 1200
winGetWorkArea - Adjusted WorkArea for multiple monitors: 0 0 1166 2880
winAdjustForAutoHide - Original WorkArea: 0 0 1166 2880
winAdjustForAutoHide - Adjusted WorkArea: 0 0 1166 2880
winCreateBoundingWindowWindowed - WindowClient w 2880 h 1166 r 2880 l 0 b 1166 t 0
winCreateBoundingWindowWindowed -  Returning
winAllocateFBShadowGDI - Creating DIB with width: 2880 height: 1200 depth: 32
winAllocateFBShadowGDI - Dibsection width: 2880 height: 1200 depth: 32 size image: 
13824000
winAllocateFBShadowGDI - Created shadow stride: 2880
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winCreateDefColormap - Deferring to fbCreateDefColormap ()
null screen fn ReparentWindow
null screen fn RestackWindow
winFinishScreenInitFB - Calling winInitWM.
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitWM - Returning.
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winFinishScreenInitFB - returning
winMultiWindowXMsgProc - Hello
winScreenInit - returning
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
InitOutput - Returning.
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of shared 
memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0414 (0414) 
(--) Using preset keyboard for Norwegian (414), type 4
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = xfree86 Model = pc105 Layout = no Variant = (null) Options = (null)
winPointerWarpCursor - Discarding first warp: 1440 600
winBlockHandler - Releasing pmServerStarted
winBlockHandler - pthread_mutex_unlock () returned
winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: