Re: Throwing c++ exception across threads

2007-04-26 Thread Shankar Unni
Eric Lilja wrote: [...] 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? [...] Just thinking about that setup makes my head spin. Yes, I suspect there'll be lots of problems

Re: Throwing c++ exception across threads

2007-04-25 Thread Aaron W. LaFramboise
Eric Lilja wrote: 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. Exceptions are a stack unwinding mechanism, and each thread has its

Re: Throwing c++ exception across threads

2007-04-25 Thread Eric Lilja
Dave Korn wrote: On 25 April 2007 15:20, Eric Lilja wrote: 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 pro

RE: Throwing c++ exception across threads

2007-04-25 Thread Dave Korn
On 25 April 2007 15:20, Eric Lilja wrote: > 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 c

Throwing c++ exception across threads

2007-04-25 Thread Eric Lilja
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 handl