FOLLOWUP: 1.5.12: problems without registry keys
Andrew Que
que_andrew@yahoo.com
Wed Dec 8 19:10:00 GMT 2004
I apologise ahead of time, I could not for the life
of me figure out how to send a reply to a thread. The
original thread is 101373: "1.5.12: problems without
registry keys"
In my original post, I noted not all apps crashed
without the registry key. So, I tried to narrow it
down. It looks like apps. that use semaphores lock up
every time.
I attached an example of an app that will lock up
without the registry keys present.
To compile:
gcc Semaphore.cpp -o Semaphore.exe
(PS. The example is just a semaphore coalition test--
and it's terrible code)
Andrew Que
email: cygwin at drque dot net
(http://www.DrQue.net/)
> 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/)
__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Semaphore.cpp
Type: application/octet-stream
Size: 1788 bytes
Desc: Semaphore.cpp
URL: <http://cygwin.com/pipermail/cygwin/attachments/20041208/410b6bb2/attachment.obj>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list