
Hi
I have noticed that on Ubuntu my code that uses Boost Threads works fine
when I throw exceptions (for example strings) and catch them in the same
thread. But this doesn't seem to work on Windows XP with Mingw gcc
3.4.5. If I throw a exception in thread, the program crashes. Is there
some known problem with Boost Thread and Mingw? I'm using Boost 1.37.
Simple example:
#include <exception>
#include

AMDG Janne Kätevä wrote:
I have noticed that on Ubuntu my code that uses Boost Threads works fine when I throw exceptions (for example strings) and catch them in the same thread. But this doesn't seem to work on Windows XP with Mingw gcc 3.4.5. If I throw a exception in thread, the program crashes. Is there some known problem with Boost Thread and Mingw? I'm using Boost 1.37.
Are you compiling everything with -mthreads? If not you need to. In Christ, Steven Watanabe
participants (2)
-
Janne Kätevä
-
Steven Watanabe