my program just took a turn for the worst, it starts handing out unhandled exception before it starts executing, before main.
It shows chkstk function where the error is, so i am thinking stack is full but don't know how to fix it, i tried changing stack size and reserve to 10000 but always fails.
after clicking break, there is an arrow next to this line in chkstk function
You need to check those variables which have dynamic initialization.
For instance, if you have, in the global namespace
1 2 3 4 5 6 7 8 9 10
constdouble PI = 3.141592653589793 ; // need not be checked.
constdouble X = foo() ; // check function foo()
A a ; // check constructor A::A()
extern B b ;
int n = b.value() ; // check that b is initialized, and check the function B::value()
struct C
{
// ...
static std::map<std::string,int> m ; // check initializer of C::m
};
Are you using any third party library (ie. any library other than the standard C++ library)?
If so, do any of these define objects with a static storage duration at namespace scope?
Are there shared libraries ( .dll / .so ) involved?
If so, do any of them define initialization routines ( DllMain() / __attribute__((constructor)) or _init() )?
Did you enable all warnings? Were any warnings issued by the compiler or linker?
I am using Opencv, i think they do define objects at namespace as i have a line as using namespace cv;
i am also using opengl
that has a void initrendering function.
but not those ones specificially.
i think i enabled all warnings as i get a whole list of warnings.
i think the warning was issued by the compiler as it shows the warning in the build error list.