I'm new to the Boost libraries and I've been attempting to implement basic multithreading using the Boost Thread library. I'm currently experiencing a problem: when I interrupt a thread my program crashes with a segmentation fault. I've done quite a bit of research on the internet regarding this problem and, although similar problems have been reported before, none of the solutions have worked for me (a number of people have indicated that interrupts work when linking with the static library, just not with the dynamic library, but I was using the static library to begin with).
Technical details are: Boost version: 1.45.0 Compiler: MinGW 4.4.1 IDE: Code Blocks 10.05
I believe the test programm is all right, it works well with boost 1.36 and 1.45 on linux with gcc 4.3.2 with both dynamic and static boost linkage. Check out the stack trace at the moment of failure, it shall give good insight into kind of problem. -- Slava