Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 6 May 2004 11:13:43 -0500
From: Brian Ford <ford@vss.fsi.com>
Reply-To: cygwin@cygwin.com
To: Jacek Trzmiel <sc0rp@hot.pl>
cc: cygwin@cygwin.com
Subject: Re: pthreads and sockets - Cannot register window class error
In-Reply-To: <40998C6B.F5A44973@hot.pl>
Message-ID: <Pine.CYG.4.58.0405061109500.3220@fordpc.vss.fsi.com>
References: <4098760F.CDB4F630@hot.pl> <4098E04B.34D2866B@dessent.net> <20040505210340.GB321@coe.bosbc.com> <4099694C.DB07AC2E@hot.pl> <Pine.CYG.4.58.0405051852530.3220@fordpc.vss.fsi.com> <40998C6B.F5A44973@hot.pl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-IsSubscribed: yes

On Thu, 6 May 2004, Jacek Trzmiel wrote:

> Nevertheless ThreadingTest.cpp posted here:
>
> http://cygwin.com/ml/cygwin/2004-05/msg00178.html
>
> still sometimes fails, even with 20040504 snapshot:
>
> > $ g++ ThreadingTest.cpp -lpthread -o ThreadingTest.exe && ./ThreadingTest.exe
> >     238 [win] ThreadingTest 1696 Winmain: Cannot register window class, Win32 error 1410
> >     896 [win] ThreadingTest 1696 Winmain: Cannot register window class, Win32 error 1410

It's an obvious race condition in winsup/cygwin/window.cc (gethwnd):
ourhwnd.  I'm not quite sure how to fix it yet, and I've got to do real
work now.  So, have at it :-).

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...

--
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/

