This is the mail archive of the cygwin mailing list for the Cygwin 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: pthreads and sockets - Cannot register window class error


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/


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