X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Lilja Subject: Throwing c++ exception across threads Date: Wed, 25 Apr 2007 16:20:14 +0200 Lines: 14 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hello! I'm developing a simple IRC bot using the cygwin tools. It actually comes with a GUI and I'm writing it using Win32. I don't compile it with -mno-cygwin, because it's using cygwin sockets and pthreads. When the user of the program connects to an irc server a thread is spawned that handles communication with the irc server. Any messages are displayed in an editbox. If a severe error occurs, an exception is thrown. Will there be any problems if I catch these exceptions in the main thread? The things is that the connection code may cause an exception and I want to run that in the connection thread so the UI doesn't freeze while it's waiting for an connection attempt to time-out for instance. - Eric -- 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/