superpacko
13th September 2011, 21:23
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.
#include <iostream>
#include <exception>
#include <QDebug>
void tiraException()
{
std::exception e;
throw e;
}
int main()
{
qDebug() << "initiating test...";
try
{
tiraException();
}
catch (...)
{
qDebug() << "error: excepcion!";
}
return 0;
}
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!
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.
#include <iostream>
#include <exception>
#include <QDebug>
void tiraException()
{
std::exception e;
throw e;
}
int main()
{
qDebug() << "initiating test...";
try
{
tiraException();
}
catch (...)
{
qDebug() << "error: excepcion!";
}
return 0;
}
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!