This is the mail archive of the cygwin-xfree 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: Errors: "Duplicate invocation" and can't find dll's


On Thu, 7 Jul 2005, Angus Veitch wrote:

> First, XWin seems to be having difficulty finding the dlls.  If I run 
> "XWin -query [computer name]" I First I get an error message saying that 
> it can't find cygwin1.dll.  If I copy that dll file from the cygwin\bin\ 
> directory into C:\cygwin\usr\X11R6\bin, the error message changes to 
> another dll.  If I copy that dll to the X11R6\bin directory, it moves 
> onto yet another one that it can't find.
> 
> If I run "startxwin.bat" instead, I don't get the dll error.  

You must have the cygwin /bin directory listed in $PATH. If you use startxwin.bat
or run XWin from the bash shell this is done for you. If you intend to start 
xwin manually you have to take care of this.

But don't ever copy cygwin1.dll around as this will cause problems when updating
the cygwin package.

> But when I 
> try to run startx, I get:
> 
> > Fatal server error:
> > InitOutput - Duplicate invocation on display number: 0.  Exiting.
> 
> The supposed cause of this error is that I am running two sessions of 
> XWin, but that is simply not the case.  I get the same results if I add 
> :1 to the batch files.

Technicly speaking XWin checks is a mutex named CYGWINX_DISPLAY:0 does already
exist and set it. This is global to all windows programs but only XWin.exe and
Xming.exe should set it. Your logfile indicates that this mutex does exist, so 
another XWin.exe or Xming.exe process must exist. 

You can check this with the windows task manager.

> This may be relevant: When I installed Cygwin/X, selected all of the X 
> components, rather than just the ones that are automatically selected by 
> the x-org base package or whatever it was called.  Is this bad?

It should not cause any problems.

bye
	ago
-- 
 Alexander.Gottwald@s1999.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]