Problem emiting a Signal from a catch block using VC10.
General and Desktop
3
Posts
2
Posters
1.3k
Views
1
Watching
-
I'm having a problem crashing when I try to emit a signal from a catch block with Visual C++ 2010. The same code runs fine under mingw. I've tried a connect with Qt::DirectConnection but with the same result. I know what the exception is, I just want to be able to handle it without crashing.
@
// works with mingw but crashes with visual c++
try{
foo();
}
catch(exception& e){
emit errorCaught("error caught: "+e.what());
}
@Edit: please use @ tags around code sections; Andre