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]

Re: Running out of resources


Harold Hunt writes:
 >Sounds to me like you have found a memory leak either in Cygwin/XFree86, or
 >in Cygwin proper.  I really doubt that Windows is the problem here.
 >
 >However, I need to know which graphics engine Cygwin/XFree86 is using in
 >order to search for any leaks.  When you start XWin.exe, you should see
 >several lines of output, one of them will look like this:
 >winSetEngine () - Using Shadow DirectDraw NonLocking
 >
 >I need you to send me (cc the list too) that line from your XWin.exe
 >startup, then I can start double checking the code.

Thanks - a memory leak is what I feel is the situation also. Sometimes
blaming Microsoft is very easy, but probably not warranted.

Here is the output from XWin.exe

--
winDetectSupportedEngines () - Windows NT/2000
winDetectSupportedEngines () - DirectDraw installed
winDetectSupportedEngines () - Allowing PrimaryDD
winDetectSupportedEngines () - DirectDraw4 installed
winDetectSupportedEngines () - Returning, supported engines 0000000f
winSetEngine () - Using user's preference: 4
winAdjustVideoModeShadowDDNL () - Command line depth: 32, using depth: 16
winCreateBoundingWindowWindowed () - WindowClient width 1146 height 838
winInitVisualsShadowDDNL () - Masks 0000f800 000007e0 0000001f RGB 6 d 16
winInitVisualsShadowDDNL () - Returning
error opening security policy file /usr/X11R6/lib/X11/xserver/SecurityPolicy
--

Here's my startxwin.bat
--
@echo off
SET DISPLAY=127.0.0.1:0.0
SET PATH=.;h:\cygwin\bin;h:\cygwin\usr\X11R6\bin;%PATH%

REM SET XFCE_DATA=\cygwin\usr\X11R6\var; xfce

rem cleanup after last run
attrib -s h:\cygwin\tmp\.X11-unix\X0
del h:\cygwin\tmp\.X11-unix\X0
rmdir h:\cygwin\tmp\.X11-unix



REM \Cygwin\bin\bash -c "/usr/bin/nohup /usr/bin/bash -c ""/bin/bash -c 'xwin -screen 0 1024x768x32 -whitepixel 255 -blackpixel 0 -engine 4'&""&" 


start XWin -screen 0 1152x864x32 -engine 4

start /B rxvt -fn "Lucida Console-12" -e bash
start /B xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash
start /B mxterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash
start /B vtwm

@echo on
--

I compiled vtwm from the distribution provided with Cygwin/XFree86. I
find that the same problem occurs with twm also.

As I said in my first e-mail, the problems start after I have a remote
Emacs (running on an Unix box) displayed locally for around 3-6 hours.

Thanks,
Sridhar
-- 
Sridhar Boovaraghavan
sridhar_ml@yahoo.com
http://www.geocities.com/sridhar_ml/


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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