delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/08/06:27:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <3E92A513.3040002@grisl.net>
Date: Tue, 08 Apr 2003 10:31:47 +0000
From: Ignasi Villagrasa <ignasi DOT villagrasa AT grisl DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; es-ES; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1
X-Accept-Language: es-es
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Multi-threaded programs

Ronald,

Thanks for answering at first.

Because of many Win32 features, I'd like to maintain windows 
compatibility and so use Win32 API functions by now. In future I'd like 
to have a Posix compatible code, but I have noticed there are many 
functions I should change now and maintaining current code lets me 
compare easily the Watcom compiled executable and the cygwin one if 
differences appear. So I use -no-cygwin flag. After some steps I could 
compile and link the program, but I have noticed there's a problem using 
multi-thread Windows functions and cygwin compiler. When I combine 
exceptions (try/catch structures) and muti-threading (Win 32 native API) 
, the compiler crashes. I have been looking for similar behaviour and 
found in this mailing list some people with the same problem. They 
explain the problem as if the compiler uses shared tables to manage 
exceptions and provoke access violation when muti-threading is used.

At fact, these cases are referred to aprox. 2 years ago. So I'd like to 
know if this can be solved upgrading any package, or if I even could use 
pthreads but maintain the rest of Win32 API calls.

Thanks in advance,

Ignasi Villagrasa.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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