I have a big issue with exceptions. I have change our compilation enviroment to use qmake to buils makefiles depending on the platform.
When testing the application i found that everytime an exception is thrown the app crashes with a runtime exception. (we are on windows 7 32bits)

So i made a silly main.cpp to see if the exception was the problem, and it confirmed it.
Qt Code:
  1. #include <iostream>
  2. #include <exception>
  3. #include <QDebug>
  4.  
  5. void tiraException()
  6. {
  7. std::exception e;
  8. throw e;
  9. }
  10.  
  11.  
  12. int main()
  13. {
  14. qDebug() << "initiating test...";
  15.  
  16. try
  17. {
  18. tiraException();
  19. }
  20. catch (...)
  21. {
  22. qDebug() << "error: excepcion!";
  23. }
  24.  
  25. return 0;
  26. }
To copy to clipboard, switch view to plain text mode 

This simple program crashes when throwign the exception.... any ideas? everything is in default state (building enviroment, using qt creator's mingw)

help will be much apreciated!