delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/07/12:12:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20041207171232.9310.qmail@web53005.mail.yahoo.com>
Date: Tue, 7 Dec 2004 09:12:32 -0800 (PST)
From: Andrew Que <que_andrew AT yahoo DOT com>
Subject: 1.5.12: problems without registry keys
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

   I have a custom app. (linux or windows) I've been
compiling with cygwin for about 6 months.  It use to
run fine on any computer as long as there was a copy
of "cygwin1.dll" along with the exe.
   Now (ver 1.5.12) the app just hangs on any computer
that doesn't have cygwin installed.  After a lot of
hair pulling, I think I've discovered the issue.  In
the registry, there are a set of keys for the cygwin's
mount points.  For some applications (such as mine), I
fount you will need these registry keys or the app
will simply hang.
   My application is a bit complicated to explain, but
usually froze at some point trying to open a file
stream.  But some other apps I compiled didn't have
this issue.  The app uses pthreads and semaphores (the
functioning app did not).  I could answerer any
questions or possibility write some code to reproduce
this problem if it would help.
   Even if they registry keys don't point to anything
valid, the application still runs.  Says to me,
cygwin1.dll just needs the keys to exist.
   I have a working solution, but I thought I'd post
this in case someone else is banging their head on a
desk somewhere.


Andrew Que
email: cygwin at drque dot net
(http://www.DrQue.net/)


-----------------------------------------------------
    Cygwin DLL version info:
        DLL version: 1.5.12
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 116
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Wed Nov 10 08:34:47 EST 2004
        Shared id: cygwin1S4

cygwin                  1.5.12-1
gcc                     3.3.3-3
gcc-core                3.3.3-3
gcc-g++                 3.3.3-3
gcc-gpc                 3.3.3-3

-----------------------------------------
Sample of registry setup that will work:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Cygnus Solutions]

[HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin]

[HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\mounts v2]

[HKEY_CURRENT_USER\Software\Cygnus
Solutions\Cygwin\Program Options]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin]

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2]
"cygdrive prefix"="/cygdrive"
"cygdrive flags"=dword:00000022

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/]
"native"="C:\\cygwin"
"flags"=dword:0000000a

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/bin]
"native"="C:\\cygwin/bin"
"flags"=dword:0000000a

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\mounts v2\/usr/lib]
"native"="C:\\cygwin/lib"
"flags"=dword:0000000a

[HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus
Solutions\Cygwin\Program Options]

[HKEY_USERS\S-1-5-21-515967899-436374069-1343024091-500\Software\Cygnus
Solutions]

[HKEY_USERS\S-1-5-21-515967899-436374069-1343024091-500\Software\Cygnus
Solutions\Cygwin]

[HKEY_USERS\S-1-5-21-515967899-436374069-1343024091-500\Software\Cygnus
Solutions\Cygwin\mounts v2]

[HKEY_USERS\S-1-5-21-515967899-436374069-1343024091-500\Software\Cygnus
Solutions\Cygwin\Program Options]



		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019